Bug 202455
Summary: | w3c/web-platform-tests/2dcontext/drawing-images-to-the-canvas/2d.drawImage.broken.html fails on Mac and iOS | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chris Lord <clord> |
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | bfulgham, dino, karlcow, sabouhallawa, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 179191 | ||
Bug Blocks: |
Chris Lord
This test fails on both MacOS and iOS with:
FAIL Canvas test: 2d.drawImage.broken assert_approx_equals: Green channel of the pixel at (50, 25) expected 255 +/- 2 but got 0
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Karl Dubost
The test should throw, but it doesn't currently.
Firefox returns
Uncaught DOMException: CanvasRenderingContext2D.drawImage: Passed-in image is "broken"
while Safari is completely silent and seems to just go with it.
Probably something to explore around
https://searchfox.org/wubkat/rev/12fc92585a259a29b2522e7e902492be45a57b6a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp#1468-1492
Karl Dubost
In addition to
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.broken.html
Probably this failure is very similar and could be fixed at the same time.
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.nonexistent.html
Radar WebKit Bug Importer
<rdar://problem/122586368>
Karl Dubost
This now PASS.
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.broken.html?label=experimental&label=master&aligned
But this one needs to be fixed. Probably in a separate bug.
https://wpt.fyi/results/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.nonexistent.html