[Webkit-unassigned] [Bug 250659] New: ImageData object must initialize to source when the source is provided
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 15 18:25:54 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=250659
Bug ID: 250659
Summary: ImageData object must initialize to source when the
source is provided
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
URL: https://wpt.fyi/results/html/canvas/element/pixel-mani
pulation/2d.imageData.object.ctor.array.html?label=exp
erimental&label=master&aligned
OS: Unspecified
Status: NEW
Keywords: BrowserCompat, WPTImpact
Severity: Normal
Priority: P2
Component: Canvas
Assignee: webkit-unassigned at lists.webkit.org
Reporter: karlcow at apple.com
CC: dino at apple.com, webkit-bug-importer at group.apple.com
Test to reproduce the issue
var array = new Uint8ClampedArray(8);
var imgdata = new window.ImageData(array, 1, 2);
imgdata.data === array;
This returns false in Safari
and true in Firefox and Chrome.
The spec says:
> If source was given, then initialize the data attribute of imageData to source.
— https://html.spec.whatwg.org/multipage/canvas.html#initialize-an-imagedata-object
This makes Safari fail
https://github.com/web-platform-tests/wpt/blob/7a0b0c285b91a0b1fa08da58c964b82e5cf40733/html/canvas/element/pixel-manipulation/2d.imageData.object.ctor.array.html#L28
https://wpt.fyi/results/html/canvas/element/pixel-manipulation/2d.imageData.object.ctor.array.html?label=experimental&label=master&aligned
--
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/20230116/f6c3bef3/attachment.htm>
More information about the webkit-unassigned
mailing list