[Webkit-unassigned] [Bug 254777] REGRESSION: PostMessage with transfer object is broken between contexts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 30 15:53:49 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254777

--- Comment #1 from Justin Mayfield <tooker at gmail.com> ---
More observations.

1. I can only reproduce with MessagePort transferables.  Using ArrayBuffer for example works as expected.
2. The data property of the MessageEvent is null but the ports[] array is populated with the MessagePort object.
3. Excluding the MessagePort from the sending side's data object works as expected.  The data property of the MessageEvent is correctly set to the cloned object and the ports[] property contains the transferred MessagePort.


I'll be refactoring my use case to use the technique from #3;  It's slightly less safe because I need to make assumptions about the ordering of the ports[] property on the receiver side instead of being able to directly access the transferables from the data object property but at least I'll be able to get my Safari 16.4 users working again and support Orion.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230330/18f9795f/attachment-0001.htm>


More information about the webkit-unassigned mailing list