Skip to content

Commit dd8667b

Browse files
author
Yutaka Hirano
committed
fix
1 parent ffc1e16 commit dd8667b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/index.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,8 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
28752875
1. Assert: |script| is not null.
28762876
1. Let |startFailed| be false.
28772877
1. Let |agent| be the result of [=obtain a service worker agent|obtaining a service worker agent=], and run the following steps in that context:
2878+
1. Let |agentCluster| be the [=agent cluster=] which contains |agent|.
2879+
1. If |workerGlobalScope|'s [=WorkerGlobalScope/embedder policy=] is "<code>[=embedder policy value/require-corp=]</code>", then set |agentCluster|'s [=agent cluster/cross-origin isolation mode=] to "<code>[=cross-origin isolation mode/logical=]</code>" or "<code>[=cross-origin isolation mode/concrete=]</code>". The one chosen is implementation-defined.
28782880
1. Let |realmExecutionContext| be the result of [=create a new JavaScript realm|creating a new JavaScript realm=] given |agent| and the following customizations:
28792881
* For the global object, create a new {{ServiceWorkerGlobalScope}} object. Let |workerGlobalScope| be the created object.
28802882
1. Set |serviceWorker|'s [=service worker/global object=] to |workerGlobalScope|.
@@ -2895,7 +2897,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
28952897
: The [=environment settings object/embedder policy=]
28962898
:: Return |workerGlobalScope|'s [=WorkerGlobalScope/embedder policy=].
28972899
: The [=environment settings object/cross-origin isolated capability=]
2898-
:: Return whether |workerGlobalScope|'s [=WorkerGlobalScope/embedder policy=]'s [=embedder policy/value=] is "<code>[=embedder policy value/require-corp=]</code>".
2900+
:: Return whether |agentCluster's| [=agent cluster/cross-origin isolation mode=] is not "<code>[=cross-origin isolation mode/none=]</code>".
28992901

29002902
1. Set |settingsObject|'s [=environment/id=] to a new unique opaque string, [=creation URL=] to |serviceWorker|'s [=service worker/script url=], [=environment/top-level creation URL=] to null, [=environment/top-level origin=] to an [=implementation-defined=] value, [=environment/target browsing context=] to null, and [=active service worker=] to null.
29012903
1. Set |workerGlobalScope|'s [=WorkerGlobalScope/url=] to |serviceWorker|'s [=service worker/script url=].

0 commit comments

Comments
 (0)