[Webkit-unassigned] [Bug 248170] New: Listeners to MessagePort Postmessage() receive ArrayBuffer rather than SharedArrayBuffer
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 21 03:22:22 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248170
Bug ID: 248170
Summary: Listeners to MessagePort Postmessage() receive
ArrayBuffer rather than SharedArrayBuffer
Product: WebKit
Version: Safari 16
Hardware: Mac (Apple Silicon)
OS: macOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore JavaScript
Assignee: webkit-unassigned at lists.webkit.org
Reporter: d_a_stapleton at hotmail.com
1. Create a WebWorker that listens for messages using self.onmessage()
2. post the WebWorker a message port from the main thread
3. When the WebWorker receives a message port, listen to messages sent to it with port.OnMessage()
4. from the main thread, post a SharedArrayBuffer on the MessagePort.
5. Upon receiving the posted SharedArrayBuffer, the WebWorker will actually see an ArrayBuffer..
In my application I actually have multiple workers and allow communication between them using SharedArraybuffers that are posted on startup. This all works fine in Chrome, but unfortunately fails because of unwanted SharedArrayBuffer -> ArrayBuffer conversion in Safari.
--
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/20221121/68bb3960/attachment-0001.htm>
More information about the webkit-unassigned
mailing list