Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 8 - usage of IsSharedMemoryAllowed, r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D61278
This commit is contained in:
Andrea Marchesini
2020-02-06 13:51:07 +00:00
parent 9f33c0dbe7
commit 8c42e363ae
6 changed files with 38 additions and 22 deletions

View File

@@ -179,7 +179,9 @@ PostMessageEvent::Run() {
cloneDataPolicy.allowIntraClusterClonableSharedObjects();
}
// TODO: what about cloneDataPolicy.allowSharedMemoryObjects()
if (targetWindow->IsSharedMemoryAllowed()) {
cloneDataPolicy.allowSharedMemoryObjects();
}
StructuredCloneHolder* holder;
if (mHolder.constructed<StructuredCloneHolder>()) {