[Webkit-unassigned] [Bug 198527] New: HTMLImageElement.decode() method doesn't work for SVG files
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 4 06:30:41 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=198527
Bug ID: 198527
Summary: HTMLImageElement.decode() method doesn't work for
SVG files
Product: WebKit
Version: Safari 12
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Images
Assignee: webkit-unassigned at lists.webkit.org
Reporter: frederic.junod at gmail.com
The HTMLImageElement.decode() method never resolves when the src references a SVG image.
To reproduce the issue:
```
const img = new Image();
img.src = 'https://unpkg.com/@mapbox/maki@4.0.0/icons/fuel-15.svg';
img.decode()
.then(() => {
console.log('loaded');
})
.catch(() => {
console.log('error');
});
```
Expected behavior:
`loaded` is displayed in the console. (this is the case on Chromium and Firefox)
--
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/20190604/3781661a/attachment.html>
More information about the webkit-unassigned
mailing list