Skip to content

Commit b891ca9

Browse files
abort steps upon the |fetchController| state.
1 parent 7357cbf commit b891ca9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/index.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3263,10 +3263,9 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
32633263
1. Let |queue| be an empty [=queue=] of [=race result=].
32643264
1. Let |raceFetchController| be null.
32653265
1. Let |raceResponse| be a [=race response=] whose [=race response/value=] is "<code>pending</code>".
3266-
1. Let |fetchControllerAborted| be false.
3267-
1. Run the following substeps [=in parallel=], but [=abort when=] |fetchControllerAborted| is true:
3266+
1. Run the following substeps [=in parallel=], but [=abort when=] |fetchController|'s [=fetch controller/state=] is "<code>terminated</code>" or "<code>aborted</code>":
32683267
1. Set |raceFetchController| to the result of calling [=fetch=] given |request|, with [=fetch/processResponse=] set to the following steps given a [=/response=] |raceNetworkRequestResponse|:
3269-
1. If |fetchController|'s [=fetch controller/state=] is "<code>terminated</code>" or "<code>aborted</code>", then |fetchControllerAborted| is true.
3268+
1. If |fetchController|'s [=fetch controller/state=] is "<code>terminated</code>" or "<code>aborted</code>", abort these steps.
32703269
1. If |raceNetworkRequestResponse|'s [=response/status=] is [=ok status=], then:
32713270
1. Set |raceResponse|'s [=race response/value=] to |raceNetworkRequestResponse|.
32723271
1. Let |raceNetworkResult| be a [=race result=] whose [=race result/routed response=] is |raceNetworkRequestResponse| and [=race result/used route=] is {{RouterSourceEnum/"network"}}.

0 commit comments

Comments
 (0)