Bug 164263 - SharedArrayBuffer should not have to be in the postMessage transfer list
Summary: SharedArrayBuffer should not have to be in the postMessage transfer list
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 20:26 PDT by Filip Pizlo
Modified: 2017-04-24 04:05 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2016-10-31 20:26:06 PDT
Instead, the new proposal is that SharedArrayBuffer passed to postMessage to a DedicatedWorker will share it regardless of whether or not it's in the transfer list, while if it's passed to any other kind of cloner, it's cloned.

Weird, but that's what's being requested.
Comment 1 Anne van Kesteren 2017-04-24 04:05:13 PDT
That's not quite what the model we ended up with in https://github.com/whatwg/html/pull/2518. If it's in the transfer list you get an exception, and if it gets to an agent you cannot share with that agent gets an error.