Bug 237403

Summary: Can't transfer an ImageBitmap through a MessageChannel
Product: WebKit Reporter: Kaiido <tristan.fraipont>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, cdumez, dino, heycam, karlcow, kkinnunen, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Kaiido
Reported 2022-03-02 18:54:53 PST
Transferring an ImageBitmap through the ports of a MessageChannel makes the `data` of the MessageEvent `null`. This doesn't happen when only cloning the ImageBitmap instead of transferring it. This also doesn't happen when transferring from a Worker's `postMessage` (this is being tested by WPT), nor when transferred from an WindowProxy, i.e this only concerns MessageChannel. You can see a minimal repro at https://jsfiddle.net/1kzxvad9/
Attachments
Radar WebKit Bug Importer
Comment 1 2022-03-09 18:55:15 PST
Ahmad Saleem
Comment 2 2025-12-09 00:02:57 PST
*** Safari 26.2 Beta *** "clone", [object ImageBitmap] { close: function close() { [native code] }, height: 20, width: 20 } "transfer", [object ImageBitmap] { close: function close() { [native code] }, height: 20, width: 20 } *** Chrome Canary 144 *** "clone", [object ImageBitmap] { close: function close() { [native code] }, height: 20, width: 20 } "transfer", [object ImageBitmap] { close: function close() { [native code] }, height: 20, width: 20 } *** Firefox Nightly 148 *** clone", [object ImageBitmap] { close: function close() { [native code] }, height: 20, width: 20 } "transfer", [object ImageBitmap] { close: function close() { [native code] }, height: 20, width: 20 } _________ All browsers now match, It might have been fixed while it was reported. @Karl - anything I missed, or we can mark as `Config Changed`?
Kaiido
Comment 3 2025-12-09 00:26:51 PST
It probably has been fixed, indeed.
Ahmad Saleem
Comment 4 2025-12-09 00:27:57 PST
(In reply to Kaiido from comment #3) > It probably has been fixed, indeed. Thanks for confirming.
Note You need to log in before you can comment on or make changes to this bug.