Bug 269544

Summary: imageBitmaps generated from OffscreenCanvas are corrupt if the ImageBitmap has already been requested since the last redraw.
Product: WebKit Reporter: Patrick Martin <patrick.martin.r>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, heycam, karlcow, mattwoodrow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Mac (Apple Silicon)   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=269704

Description Patrick Martin 2024-02-15 21:24:31 PST
Example:
https://jsfiddle.net/ILOVEPIE/eupt4L1y/12/

The image should not flicker. The reason it is is that requesting an ImageBitmap results in an incorrect result if it's not the first request of an ImageBitmap from an OffscreenCanvas since the canvas was last redrawed.

This is a sister bug of firefox bug 1880591 and chrome bug 324758698.
Comment 1 Radar WebKit Bug Importer 2024-02-22 21:25:14 PST
<rdar://problem/123488456>
Comment 2 Karl Dubost 2024-03-03 17:33:30 PST
Currently this is flickering in all 3 browsers. 
https://bugzilla.mozilla.org/show_bug.cgi?id=1880591
https://issues.chromium.org/issues/324758698

The chromium issue has more context.