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: CanvasAssignee: 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:    

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>