From 485b55e58f7f1d54e9036e78ac80d57dfd931836 Mon Sep 17 00:00:00 2001 From: Arthur Sonzogni Date: Tue, 15 Dec 2020 16:14:07 +0100 Subject: [PATCH] Revert checking targetRealm for transfert SAB. --- source | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/source b/source index 59f31fb6b3b..41a8e80c376 100644 --- a/source +++ b/source @@ -8087,6 +8087,17 @@ interface DOMStringList {
  1. Let agentCluster be the surrounding agent's agent cluster.

  2. +
  3. +

    If agentCluster's cross-origin isolated + capability is false, then throw a + "DataCloneError"DOMException.

    + +

    This check is only needed when serializing (and not when deserializing) as + cross-origin isolated + cannot change over time and a SharedArrayBuffer cannot leave an + agent cluster.

    +
  4. If forStorage is true, then throw a "DataCloneError" DOMException.

  5. @@ -8504,18 +8515,6 @@ o.myself = o; serialized.[[AgentCluster]], then then throw a "DataCloneError" DOMException.

    -
  6. If targetRealm's cross-origin isolated capability is false, then throw - "DataCloneError" DOMException.

    - -

    This check is only needed when deserializing (and not when serializing) as - - cross-origin isolated capability cannot change over time and a - SharedArrayBuffer cannot leave an agent - cluster.

    -
  7. -
  8. Otherwise, set value to a new SharedArrayBuffer object in targetRealm whose [[ArrayBufferData]] internal slot value is serialized.[[ArrayBufferData]] and whose [[ArrayBufferByteLength]] internal slot