Skip to content

Commit dd2b26b

Browse files
committed
Add opt-out condition
1 parent 33123c4 commit dd2b26b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/index.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3229,9 +3229,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
32293229
* |request| is a [=non-subresource request=].
32303230
* |request| is a [=subresource request=] and |registration| is [=stale=].
32313231
1. Let |raceResponse| be null.
3232+
1. Let |source| be null.
32323233
1. If |activeWorker|'s [=service worker/list of router rules=] [=list/is not empty=]:
32333234
1. Set |timingInfo|’s [=service worker timing info/worker router evaluation start=] to the [=coarsened shared current time=] given |useHighResPerformanceTimers|.
3234-
1. Let |source| be the result of running the [=Get Router Source=] algorithm with |registration|'s <a>active worker</a> and |request|.
3235+
1. Set |source| to be the result of running the [=Get Router Source=] algorithm with |registration|'s <a>active worker</a> and |request|.
32353236
1. If |source| is non-null, then:
32363237
1. Set |timingInfo|'s [=service worker timing info/worker matched router source=] be set to |source|, and [=service worker timing info/worker final router source=] be set to {{RouterSourceEnum/"network"}}.
32373238
1. If |source| is {{RouterSourceEnum/"network"}}:
@@ -3310,7 +3311,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
33103311
1. [=If aborted=], then:
33113312
1. Let |deserializedError| be the result of [=deserialize a serialized abort reason=] given null and |workerRealm|.
33123313
1. [=fetch controller/Abort=] |preloadFetchController| with |deserializedError|.
3313-
1. Else, a user agent may run the following substeps:
3314+
1. Else if |source| is not "{{RouterSourceEnum/fetch-event}}", a user agent may run the following substeps:
33143315

33153316
Note: A user agent may speculatively dispatch a network request in parallel with creating a fetch event in order to minimize the bootstrap cost.
33163317

0 commit comments

Comments
 (0)