@@ -2083,6 +2083,11 @@ Unless stated otherwise, it is false.
2083
2083
2084
2084
<p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
2085
2085
2086
+ <p> A <a for=/>request</a> has an associated <dfn export for=request>navigation id</dfn> .
2087
+ Unless stated otherwise, it is null.
2088
+
2089
+ <p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
2090
+
2086
2091
<p> A <a for=/>request</a> has an associated boolean <dfn export for=request>render-blocking</dfn> .
2087
2092
Unless stated otherwise, it is false.
2088
2093
@@ -2124,6 +2129,13 @@ otherwise, it is unset.
2124
2129
<a for=request>done flag</a> , and <a for=request>timing allow failed flag</a> are used as
2125
2130
bookkeeping details by the <a for=/>fetch</a> algorithm.
2126
2131
2132
+ <p> A <a for=/>request</a> has an associated
2133
+ <dfn export for=request id=concept-request-id>request id</dfn> which is a unique
2134
+ string automatically set when the <a for=/>request</a> is created.
2135
+
2136
+ Note: the [=request id=] is used by WebDriver-BiDi. When a request is [=cloned=] ,
2137
+ the created request gets a unique [=request id=] . [[!WEBDRIVER-BIDI]]
2138
+
2127
2139
<hr>
2128
2140
2129
2141
<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
@@ -4684,6 +4696,11 @@ steps:
4684
4696
<a for=request>URL</a> , <a for="fetch params">request</a> 's
4685
4697
<a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> ,
4686
4698
<var> bodyInfo</var> , and <var> responseStatus</var> .
4699
+
4700
+ <li><p> If <var> response</var> is a <a>network error</a> , run
4701
+ the <a>WebDriver BiDi fetch error</a> steps with <var> request</var> . Otherwise
4702
+ run the <a>WebDriver BiDi response completed</a> steps with
4703
+ <var> request</var> and <var> response</var> .
4687
4704
</ol>
4688
4705
4689
4706
<li>
@@ -4934,6 +4951,13 @@ these steps:
4934
4951
<a>filtered response</a> , and to <var> response</var> 's
4935
4952
<a for="filtered response">internal response</a> otherwise.
4936
4953
4954
+ <!-- the serviceworker spec is responsible for emmitting the WebDriver BiDi
4955
+ request events in this case. That's necessary to ensure that the events are
4956
+ only generated if the serviceworker will handle the fetch, and to get the
4957
+ correct event ordering in the case of network fallback -->
4958
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
4959
+ <var> request</var> and <var> response</var> .
4960
+
4937
4961
<li>
4938
4962
<p> If one of the following is true
4939
4963
@@ -5338,6 +5362,10 @@ run these steps:
5338
5362
<a for="header list">append</a> (`<code> Cache-Control</code> `, `<code> max-age=0</code> `) to
5339
5363
<var> httpRequest</var> 's <a for=request>header list</a> .
5340
5364
5365
+ <!-- After this point the request is not further modified before being either
5366
+ retrieved from the cache or sent -->
5367
+ <li><p> Run the <a>WebDriver BiDi before request sent</a> steps with <a>request</a> .
5368
+
5341
5369
<li>
5342
5370
<p> If <var> httpRequest</var> 's <a for=request>cache mode</a> is "<code> no-store</code> " or
5343
5371
"<code> reload</code> ", then:
@@ -5540,6 +5568,8 @@ run these steps:
5540
5568
<li><p> <a>If aborted</a> , then return the <a for=/>appropriate network error</a> for
5541
5569
<var> fetchParams</var> .
5542
5570
5571
+ <li><p> If <var> response</var> is not null, run the <a>WebDriver BiDi response
5572
+ started</a> steps with <var> request</var> and <var> response</var> .
5543
5573
5544
5574
<!-- If response is still null, we require a forwarded request. -->
5545
5575
<li>
@@ -5803,6 +5833,9 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
5803
5833
5804
5834
<li><p> Wait until all the HTTP response headers are transmitted.
5805
5835
5836
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
5837
+ |request| and |response|.
5838
+
5806
5839
<li><p> Let <var> status</var> be the HTTP response's status code.
5807
5840
5808
5841
<li>
0 commit comments