Skip to content

Commit ccd10f2

Browse files
committed
“service-workers mode”
1 parent afcdd34 commit ccd10f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
18621862
1. If |r|'s [=request/url=]'s [=url/scheme=] is not one of "<code>http</code>" and "<code>https</code>", then:
18631863
1. [=fetch/Terminate=] all the ongoing <a>fetches</a> initiated by |requests| with reason *fatal*.
18641864
1. Break the loop.
1865-
1. If |r|'s [=request/client=]'s [=environment settings object/global object=] is a {{ServiceWorkerGlobalScope}} object, set |request|'s [=use-service-workers value=] to "`foreign`".
1865+
1. If |r|'s [=request/client=]'s [=environment settings object/global object=] is a {{ServiceWorkerGlobalScope}} object, set |request|'s [=service-workers mode=] to "`foreign`".
18661866
1. Set |r|'s [=request/initiator=] to "<code>fetch</code>" and [=request/destination=] to "<code>subresource</code>".
18671867
1. Add a {{Request}} object associated with |r| to |requestArray|.
18681868
1. Let |responsePromise| be a new <a>promise</a>.
@@ -2153,7 +2153,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
21532153
1. Let |serviceWorker| be |request|'s [=request/client=]'s [=environment settings object/global object=]'s [=ServiceWorkerGlobalScope/service worker=].
21542154
1. If |serviceWorker|'s <a>imported scripts updated flag</a> is unset, then:
21552155
1. Let |registration| be |serviceWorker|'s [=containing service worker registration=].
2156-
1. Set |request|'s [=use-service-workers value=] to "`foreign`".
2156+
1. Set |request|'s [=service-workers mode=] to "`foreign`".
21572157
1. Set |request|'s [=request/cache mode=] to "<code>no-cache</code>" if any of the following are true:
21582158
* |registration|'s [=service worker registration/use cache=] is false.
21592159
* The [=current global object=]'s [=force bypass cache for importscripts flag=] is set.

docs/v1/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
16161616
1. If |r|'s [=request/url=]'s [=url/scheme=] is not one of "<code>http</code>" and "<code>https</code>", then:
16171617
1. [=fetch/Terminate=] all the ongoing <a>fetches</a> initiated by |requests| with reason *fatal*.
16181618
1. Break the loop.
1619-
1. If |r|'s [=request/client=]'s [=environment settings object/global object=] is a {{ServiceWorkerGlobalScope}} object, set |request|'s [=use-service-workers value=] to "`foreign`".
1619+
1. If |r|'s [=request/client=]'s [=environment settings object/global object=] is a {{ServiceWorkerGlobalScope}} object, set |request|'s [=service-workers mode=] to "`foreign`".
16201620
1. Set |r|'s [=request/initiator=] to "<code>fetch</code>" and [=request/destination=] to "<code>subresource</code>".
16211621
1. Add a {{Request}} object associated with |r| to |requestArray|.
16221622
1. Let |responsePromise| be a new <a>promise</a>.
@@ -1907,7 +1907,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
19071907
1. Let |serviceWorker| be |request|'s [=request/client=]'s [=environment settings object/global object=]'s [=ServiceWorkerGlobalScope/service worker=].
19081908
1. If |serviceWorker|'s <a>imported scripts updated flag</a> is unset, then:
19091909
1. Let |registration| be |serviceWorker|'s [=containing service worker registration=].
1910-
1. Set |request|'s [=use-service-workers value=] to "`foreign`".
1910+
1. Set |request|'s [=service-workers mode=] to "`foreign`".
19111911
1. Set |request|'s [=request/cache mode=] to "<code>no-cache</code>" if any of the following are true:
19121912
* |registration|'s [=service worker registration/use cache=] is false.
19131913
* The [=current global object=]'s [=force bypass cache for importscripts flag=] is set.

0 commit comments

Comments
 (0)