Bug 269544 - imageBitmaps generated from OffscreenCanvas are corrupt if the ImageBitmap has already been requested since the last redraw.
Summary: imageBitmaps generated from OffscreenCanvas are corrupt if the ImageBitmap ha...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 17
Hardware: Mac (Apple Silicon) Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-02-15 21:24 PST by Patrick Martin
Modified: 2024-03-03 17:33 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.