[Webkit-unassigned] [Bug 188347] New: Calling .decode() on Image instance referencing an SVG throws an EncodingError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 6 07:47:25 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=188347

            Bug ID: 188347
           Summary: Calling .decode() on Image instance referencing an SVG
                    throws an EncodingError
           Product: WebKit
           Version: Safari 11
          Hardware: Macintosh
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: m at reaktivo.com
                CC: cdumez at apple.com

Calling the decode method on an Image instance referencing a SVG file throws an EncodingError exception

I've created a small reproducible environment here: https://codesandbox.io/s/xl6mq18704

Code to replicate

```
function loadImage(src, onLoad) {
  var image = new window.Image();
  image.onload = function(e) {
    image.decode().then(() => onLoad(e)); 
  };
  image.src = src;
  return image;
}

loadImage('https://xl6mq18704.codesandbox.io/img/refresh.svg', (e) => document.body.appendChild(e.target))

```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180806/a7524636/attachment.html>


More information about the webkit-unassigned mailing list