Skip to content

Commit c2070a7

Browse files
committed
Set the response to responseForAutoPreload regardless of the status
1 parent d436dce commit c2070a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
33193319
1. Set |responseForAutoPreload| to be a [=race response=] whose [=race response/value=] is "<code>pending</code>".
33203320
1. Run the following substeps [=in parallel=], but [=abort when=] |fetchController|'s [=fetch controller/state=] is "<code>terminated</code>" or "<code>aborted</code>":
33213321
1. Set |autoPreloadFetchController| to the result of calling [=fetch=] given |request|, with [=fetch/processResponse=] set to the following steps given a [=/response=] |autoPreloadRequestResponse|:
3322-
1. If |autoPreloadRequestResponse|'s [=response/status=] is [=ok status=], set |responseForAutoPreload|'s [=race response/value=] to |autoPreloadRequestResponse|.
3322+
1. Set |responseForAutoPreload|'s [=race response/value=] to |autoPreloadRequestResponse|.
33233323
1. [=If aborted=] and |autoPreloadFetchController| is not null, then:
33243324
1. [=fetch controller/Abort=] |autoPreloadFetchController|.
33253325
1. Set |responseForAutoPreload| to a [=race response=] whose [=race response/value=] is null.

0 commit comments

Comments
 (0)