[Webkit-unassigned] [Bug 198527] HTMLImage​Element​.decode() method doesn't work for SVG files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 6 12:26:08 PDT 2019


Said Abou-Hallawa <sabouhallawa at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
What is the meaning of decoding an SVG image? And why do you expect the decode() promise to be resolved rather than being rejected?

The specs https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-decode says:

    image . decode()
    This method causes the user agent to decode the image in parallel, returning a promise that fulfills when decoding is complete.

    The promise will be rejected with an "EncodingError" DOMException if the image cannot be decoded.

Since the SVG image cannot be decoded, the promise is rejected. Open the attached test case.

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/20190606/24b26437/attachment-0001.html>

More information about the webkit-unassigned mailing list