Skip to content

Commit 7d434ca

Browse files
Merge branch 'main' into lifetime
Resolved conflicts caused by #1719
2 parents 2c61b5b + a14460b commit 7d434ca

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/index.bs

+11-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ ED: https://w3c.github.io/ServiceWorker/
55
TR: https://www.w3.org/TR/service-workers/
66
Shortname: service-workers
77
Level:
8-
Editor: Jake Archibald, w3cid 76394, Google, [email protected]
9-
Editor: Marijn Kruisselbrink, w3cid 72440, Google, mek@chromium.org
8+
Editor: Monica Chintala, w3cid 160353, Microsoft, [email protected]
9+
Editor: Yoshisato Yanagisawa, w3cid 142513, Google, yyanagisawa@chromium.org
1010
Former Editor: Alex Russell, Google, [email protected]
11+
Former Editor: Jake Archibald, w3cid 76394, Google, [email protected]
1112
Former Editor: Jungkee Song, Microsoft‚ represented Samsung until April 2018, [email protected]
13+
Former Editor: Marijn Kruisselbrink, w3cid 72440, Google, [email protected]
1214
Repository: w3c/ServiceWorker
1315
Group: serviceworkers
1416
!Tests: <a href=https://github.com/web-platform-tests/wpt/tree/master/service-workers>web-platform-tests service-workers/</a> (<a href=https://github.com/web-platform-tests/wpt/labels/service-workers>ongoing work</a>)
@@ -1609,7 +1611,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
16091611
1. Let |serviceWorker| be the [=current global object=]'s associated [=ServiceWorkerGlobalScope/service worker=].
16101612
1. For each |rule| of |rules|:
16111613
1. If running the [=Verify Router Condition=] algorithm with |rule|["{{RouterRule/condition}}"] and |serviceWorker| returns false, return [=a promise rejected with=] a {{TypeError}}.
1612-
1. If |rule|["{{RouterRule/source}}"] is "{{RouterSourceEnum/fetch-event}}" and |serviceWorker|'s [=set of event types to handle=] does not [=set/contain=] {{ServiceWorkerGlobalScope/fetch!!event}}, return [=a promise rejected with=] a {{TypeError}}.
1614+
1. If |rule|["{{RouterRule/source}}"] is either of "{{RouterSourceEnum/fetch-event}}" or "{{RouterSourceEnum/race-network-and-fetch-handler}}", and |serviceWorker|'s [=set of event types to handle=] does not [=set/contain=] {{ServiceWorkerGlobalScope/fetch!!event}}, return [=a promise rejected with=] a {{TypeError}}.
16131615
1. Let |lifetimePromise| be a new [=promise=].
16141616
1. [=ExtendableEvent/Add lifetime promise=] |lifetimePromise| to [=this=].
16151617

@@ -1629,7 +1631,6 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
16291631
1. Set |serviceWorker|'s [=service worker/list of router rules=] to |allRules|.
16301632
1. Resolve |promise| with undefined.
16311633
1. Return |promise|.
1632-
16331634
</section>
16341635
</section>
16351636

@@ -3398,7 +3399,11 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
33983399
Note: Since running a user-defined regular expression has a security concern, it is prohibited.
33993400

34003401
1. Set |hasCondition| to true.
3401-
1. If |condition|["{{RouterCondition/requestMethod}}"] [=map/exists=], set |hasCondition| to true.
3402+
1. If |condition|["{{RouterCondition/requestMethod}}"] [=map/exists=]:
3403+
1. Let |method| be |condition|["{{RouterCondition/requestMethod}}"].
3404+
1. If |method| is not a [=/method=], then return false.
3405+
1. If |method| is a [=forbidden method=], then return false.
3406+
1. Set |hasCondition| to true.
34023407
1. If |condition|["{{RouterCondition/requestMode}}"] [=map/exists=], set |hasCondition| to true.
34033408
1. If |condition|["{{RouterCondition/requestDestination}}"] [=map/exists=], set |hasCondition| to true.
34043409
1. If |condition|["{{RouterCondition/runningStatus}}"] [=map/exists=], set |hasCondition| to true.
@@ -3450,6 +3455,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
34503455
1. If running [=match=] with |pattern| and |request|'s [=request/URL=] returns null, return false.
34513456
1. If |condition|["{{RouterCondition/requestMethod}}"] [=map/exists=], then:
34523457
1. Let |method| be |condition|["{{RouterCondition/requestMethod}}"].
3458+
1. [=method/Normalize=] |method|.
34533459
1. If |request|'s [=request/method=] is not |method|, return false.
34543460
1. If |condition|["{{RouterCondition/requestMode}}"] [=map/exists=], then:
34553461
1. Let |mode| be |condition|["{{RouterCondition/requestMode}}"].

0 commit comments

Comments
 (0)