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
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
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
<rdar://problem/122586368>
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