[Webkit-unassigned] [Bug 238442] New: SharedArrayBuffers do not get cloned on some messaging APIs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 28 03:31:51 PDT 2022


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

            Bug ID: 238442
           Summary: SharedArrayBuffers do not get cloned on some messaging
                    APIs
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vidal.roberto.j at gmail.com

Created attachment 455893

  --> https://bugs.webkit.org/attachment.cgi?id=455893&action=review

reproduction with visible console and Safari version

Example repro: https://github.com/jrvidal/message-port-repro/tree/master/clone
Working deployment: https://sab-clone.herokuapp.com/

When sending a message containing a `SharedArrayBuffer`, the receiving end sometimes receives a regular, deep copied `ArrayBuffer` instead of a proper clone pointing to the same bytes.

In the example provided, it can be consistently reproduced when posting a message through a `MessagePort` or a `BroadcastChannel`.

-- 
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/20220328/9f24b02f/attachment.htm>


More information about the webkit-unassigned mailing list