Bug 202455 - w3c/web-platform-tests/2dcontext/drawing-images-to-the-canvas/2d.drawImage.broken.html fails on Mac and iOS
Summary: w3c/web-platform-tests/2dcontext/drawing-images-to-the-canvas/2d.drawImage.br...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on: 179191
Blocks:
  Show dependency treegraph
 
Reported: 2019-10-02 05:53 PDT by Chris Lord
Modified: 2024-05-22 22:48 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lord 2019-10-02 05:53:26 PDT
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
Comment 1 Karl Dubost 2023-01-12 23:42:27 PST
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
Comment 3 Radar WebKit Bug Importer 2024-02-08 15:14:53 PST
<rdar://problem/122586368>