Skip to content

Commit 87b93fc

Browse files
committed
“service-workers mode”
1 parent 434f174 commit 87b93fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/index.bs

Lines changed: 3 additions & 3 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.
@@ -2480,7 +2480,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
24802480

24812481
Note: See the definition of the Service-Worker header in Appendix B: Extended HTTP headers.
24822482

2483-
1. Set |request|'s [=use-service-workers value=] to "`none`" and |request|'s [=request/redirect mode=] to "`error`".
2483+
1. Set |request|'s [=service-workers mode=] to "`none`" and |request|'s [=request/redirect mode=] to "`error`".
24842484
1. Set |request|'s [=request/cache mode=] to "<code>no-cache</code>" if any of the following are true:
24852485
* |registration|'s [=service worker registration/use cache=] is false.
24862486
* |job|'s [=force bypass cache flag=] is set.

docs/v1/index.bs

Lines changed: 3 additions & 3 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.
@@ -2200,7 +2200,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
22002200

22012201
Note: See the definition of the Service-Worker header in Appendix B: Extended HTTP headers.
22022202

2203-
1. Set |request|'s [=use-service-workers value=] to "`none`" and |request|'s [=request/redirect mode=] to "`error`".
2203+
1. Set |request|'s [=service-workers mode=] to "`none`" and |request|'s [=request/redirect mode=] to "`error`".
22042204
1. Set |request|'s [=request/cache mode=] to "<code>no-cache</code>" if any of the following are true:
22052205
* |registration|'s [=service worker registration/use cache=] is false.
22062206
* |job|'s [=force bypass cache flag=] is set.

0 commit comments

Comments
 (0)