@@ -2128,6 +2128,11 @@ Unless stated otherwise, it is false.
2128
2128
2129
2129
<p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
2130
2130
2131
+ <p> A <a for=/>request</a> has an associated <dfn export for=request>navigation
2132
+ id</dfn> (a string). Unless stated otherwise, it is null.
2133
+
2134
+ <p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
2135
+
2131
2136
<p> A <a for=/>request</a> has an associated boolean <dfn export for=request>render-blocking</dfn> .
2132
2137
Unless stated otherwise, it is false.
2133
2138
@@ -2169,6 +2174,15 @@ otherwise, it is unset.
2169
2174
<a for=request>done flag</a> , and <a for=request>timing allow failed flag</a> are used as
2170
2175
bookkeeping details by the <a for=/>fetch</a> algorithm.
2171
2176
2177
+ <p> A <a for=/>request</a> has an associated
2178
+ <dfn export for=request id=concept-request-id>request id</dfn> which is a unique
2179
+ string automatically set when the <a for=/>request</a> is created.
2180
+
2181
+ Note: the [=request/request id=] is used by WebDriver-BiDi. It remains constant
2182
+ across all requests resulting from a redirect of an initial request. When a
2183
+ request is [=request/cloned=] , the created request gets a unique
2184
+ [=request/request id=] . [[!WEBDRIVER-BIDI]]
2185
+
2172
2186
<hr>
2173
2187
2174
2188
<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
@@ -2245,7 +2259,10 @@ is to return the result of <a>serializing a request origin</a> with <var>request
2245
2259
2246
2260
<ol>
2247
2261
<li><p> Let <var> newRequest</var> be a copy of <var> request</var> , except for its
2248
- <a for=request>body</a> .
2262
+ <a for=request>body</a> and <a for=request>request id</a> .
2263
+
2264
+ <li><p> Let <var> newRequest's</var> <a for=request>request id</a> be a new
2265
+ unique string.
2249
2266
2250
2267
<li><p> If <var> request</var> 's <a for=request>body</a> is non-null, set <var>newRequest</var>' s
2251
2268
<a for=request>body</a> to the result of <a lt=clone for=body>cloning</a> <var> request</var> 's
@@ -4789,6 +4806,11 @@ steps:
4789
4806
<a for=request>URL</a> , <var> fetchParams</var> 's <a for="fetch params">request</a>' s
4790
4807
<a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> ,
4791
4808
<var> bodyInfo</var> , and <var> responseStatus</var> .
4809
+
4810
+ <li><p> If <var> response</var> is a <a>network error</a> , run
4811
+ the <a>WebDriver BiDi fetch error</a> steps with <var> request</var> . Otherwise
4812
+ run the <a>WebDriver BiDi response completed</a> steps with
4813
+ <var> request</var> and <var> response</var> .
4792
4814
</ol>
4793
4815
4794
4816
<li>
@@ -5143,6 +5165,13 @@ these steps:
5143
5165
<a>filtered response</a> ; otherwise to <var> response</var> 's
5144
5166
<a for="filtered response">internal response</a> .
5145
5167
5168
+ <!-- Service Workers is responsible for emmitting the WebDriver BiDi
5169
+ request events in this case. That's necessary to ensure that the events are
5170
+ only generated if the service worker will handle the fetch, and to get the
5171
+ correct event ordering in the case of network fallback -->
5172
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
5173
+ <var> request</var> and <var> response</var> .
5174
+
5146
5175
<li>
5147
5176
<p> If one of the following is true
5148
5177
@@ -5677,6 +5706,10 @@ run these steps:
5677
5706
<p class=note> This intentionally does not depend on <var> httpRequest</var> 's
5678
5707
<a for=request>credentials mode</a> .
5679
5708
5709
+ <!-- After this point the request is not further modified before being either
5710
+ retrieved from the cache or sent -->
5711
+ <li><p> Run the <a>WebDriver BiDi before request sent</a> steps with <var> request</var> .
5712
+
5680
5713
<li><p> Set <var> httpCache</var> to the result of <a>determining the HTTP cache partition</a> ,
5681
5714
given <var> httpRequest</var> .
5682
5715
@@ -5772,6 +5805,8 @@ run these steps:
5772
5805
<li><p> <a>If aborted</a> , then return the <a for=/>appropriate network error</a> for
5773
5806
<var> fetchParams</var> .
5774
5807
5808
+ <li><p> If <var> response</var> is not null, run the <a>WebDriver BiDi response
5809
+ started</a> steps with <var> request</var> and <var> response</var> .
5775
5810
5776
5811
<!-- If response is still null, we require a forwarded request. -->
5777
5812
<li>
@@ -6035,6 +6070,9 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
6035
6070
6036
6071
<li><p> Wait until all the HTTP response headers are transmitted.
6037
6072
6073
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
6074
+ |request| and |response|.
6075
+
6038
6076
<li><p> Let <var> status</var> be the HTTP response's status code.
6039
6077
6040
6078
<li>
0 commit comments