@@ -215,6 +215,9 @@ lt="authentication entry">authentication entries</a> (for HTTP authentication).
215
215
216
216
<dt> <dfn for="fetch params">timing info</dfn>
217
217
<dd> A <a for=/>fetch timing info</a> .
218
+
219
+ <dt> <dfn export for="fetch params">preloaded response candidate</dfn> (default null)
220
+ <dd> Null, "<code> pending</code> ", or a <a for=/>response</a> .
218
221
</dl>
219
222
220
223
<p> A <dfn export>fetch controller</dfn> is a <a for=/>struct</a> used to enable callers of
@@ -3892,17 +3895,19 @@ the request.
3892
3895
<a for="environment settings object">origin</a> .
3893
3896
3894
3897
<li><p> Let <var> onPreloadedResponseAvailable</var> be an algorithm that runs the following
3895
- step <a>in parallel</a> given a <a for=/>response</a> <var> response</var> : run
3896
- <a> fetch finale</a> given <var> response </var> and <var> fetchParams </var> .
3898
+ step given a <a for=/>response</a> <var> response</var> : set <var> fetchParams </var> 's
3899
+ <a for=" fetch params">preloaded response candidate</a> to <var> response </var> .
3897
3900
3898
3901
<li><p> Let <var> foundPreloadedResource</var> be the result of invoking
3899
- <a>consume a preloaded resource</a> for <var> req</var> 's <a for=request>window</a> ,
3900
- given <var> req</var> 's <a for=request>URL</a>, <var>req</var>' s <a for=request>destination</a> ,
3901
- <var> req</var> 's <a for=request>mode</a>, <var>req</var>' s <a for=request>credentials mode</a> ,
3902
- <var> req</var> 's <a for=request>integrity metadata</a> , and
3903
- <var> onPreloadedResponseAvailable</var> .
3904
-
3905
- <li><p> If <var> foundPreloadedResource</var> is true, then return.
3902
+ <a>consume a preloaded resource</a> for <var> request</var> 's <a for=request>window</a> , given
3903
+ <var> request</var> 's <a for=request>URL</a>, <var>request</var>' s <a for=request>destination</a> ,
3904
+ <var> request</var> 's <a for=request>mode</a>, <var>request</var>' s
3905
+ <a for=request>credentials mode</a> , <var> request</var> 's <a for=request>integrity metadata</a> ,
3906
+ and <var> onPreloadedResponseAvailable</var> .
3907
+
3908
+ <li><p> If <var> foundPreloadedResource</var> is true and <var> fetchParams</var> 's
3909
+ <a for="fetch params">preloaded response candidate</a> is null, then set <var> fetchParams</var> 's
3910
+ <a for="fetch params">preloaded response candidate</a> to "<code> pending</code> ".
3906
3911
</ol>
3907
3912
</li>
3908
3913
@@ -4040,14 +4045,25 @@ steps:
4040
4045
corresponding to the first matching statement:
4041
4046
4042
4047
<dl class=switch>
4048
+ <dt><var> fetchParams</var> 's <a for="fetch params">preloaded response candidate</a> is not null
4049
+ <dd>
4050
+ <ol>
4051
+ <li><p> Wait until <var> fetchParams</var> 's
4052
+ <a for="fetch params">preloaded response candidate</a> is not "<code> pending</code> ".
4053
+
4054
+ <li><p> <a for=/>Assert</a> : <var> fetchParams</var> 's
4055
+ <a for="fetch params">preloaded response candidate</a> is a <a for=/>response</a> .
4056
+
4057
+ <li><p> Return <var> fetchParams</var> 's <a for="fetch params">preloaded response candidate</a> .
4058
+ </ol>
4059
+
4043
4060
<dt><var> request</var> 's <a for=request>current URL</a>' s <a for=url>origin</a> is
4044
4061
<a>same origin</a> with <var> request</var> 's <a for=request>origin</a>, and <var>request</var>' s
4045
4062
<a for=request>response tainting</a> is "<code> basic</code> "
4046
4063
<dt><var> request</var> 's <a for=request>current URL</a>' s <a for=url>scheme</a> is
4047
4064
"<code> data</code> "
4048
4065
<dt><var> request</var> 's <a for=request>mode</a> is
4049
4066
"<code> navigate</code> " or "<code> websocket</code> "
4050
-
4051
4067
<dd>
4052
4068
<ol>
4053
4069
<li><p> Set <var> request</var> 's
@@ -4064,7 +4080,6 @@ steps:
4064
4080
4065
4081
<dt><var> request</var> 's <a for=request>mode</a> is
4066
4082
"<code> same-origin</code> "
4067
-
4068
4083
<dd><p> Return a <a>network error</a> .
4069
4084
4070
4085
<dt><var> request</var> 's <a for=request>mode</a> is
@@ -4096,7 +4111,6 @@ steps:
4096
4111
4097
4112
<dt><var> request</var> 's <a for=request>current URL</a>' s <a for=url>scheme</a> is not an
4098
4113
<a>HTTP(S) scheme</a>
4099
-
4100
4114
<dd><p> Return a <a>network error</a> .
4101
4115
4102
4116
<dt><var> request</var> 's <a>use-CORS-preflight flag</a> is set
0 commit comments