@@ -1964,6 +1964,11 @@ Unless stated otherwise, it is false.
1964
1964
1965
1965
<p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
1966
1966
1967
+ <p> A <a for=/>request</a> has an associated <dfn export for=request>navigation id</dfn> .
1968
+ Unless stated otherwise, it is null.
1969
+
1970
+ <p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
1971
+
1967
1972
<p> A <a for=/>request</a> has an associated boolean <dfn export for=request>render-blocking</dfn> .
1968
1973
Unless stated otherwise, it is false.
1969
1974
@@ -2005,6 +2010,13 @@ otherwise, it is unset.
2005
2010
<a for=request>done flag</a> , and <a for=request>timing allow failed flag</a> are used as
2006
2011
bookkeeping details by the <a for=/>fetch</a> algorithm.
2007
2012
2013
+ <p> A <a for=/>request</a> has an associated
2014
+ <dfn export for=request id=concept-request-id>request id</dfn> which is a unique
2015
+ string automatically set when the <a for=/>request</a> is created.
2016
+
2017
+ Note: the [=request id=] is used by WebDriver-BiDi. When a request is [=cloned=] ,
2018
+ the created request gets a unique [=request id=] . [[!WEBDRIVER-BIDI]]
2019
+
2008
2020
<hr>
2009
2021
2010
2022
<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
@@ -4522,8 +4534,13 @@ steps:
4522
4534
<a for=request>initiator type</a> is not null, then
4523
4535
<a for=/>mark resource timing</a> given <var> timingInfo</var> , <var> request</var> 's
4524
4536
<a for=request>URL</a> , <a for="fetch params">request</a> 's
4525
- <a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> ,
4526
- <var> bodyInfo</var> , and <var> responseStatus</var> .
4537
+ <a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> , and
4538
+ <var> bodyInfo</var> .
4539
+
4540
+ <li><p> If <var> response</var> is a <a>network error</a> , run
4541
+ the <a>WebDriver BiDi fetch error</a> steps with <var> request</var> . Otherwise
4542
+ run the <a>WebDriver BiDi response completed</a> steps with
4543
+ <var> request</a> and <var> response</var> .
4527
4544
</ol>
4528
4545
4529
4546
<li>
@@ -4776,6 +4793,13 @@ these steps:
4776
4793
<a>filtered response</a> , and to <var> response</var> 's
4777
4794
<a for="filtered response">internal response</a> otherwise.
4778
4795
4796
+ <!-- the serviceworker spec is responsible for emmitting the WebDriver BiDi
4797
+ request events in this case. That's necessary to ensure that the events are
4798
+ only generated if the serviceworker will handle the fetch, and to get the
4799
+ correct event ordering in the case of network fallback -->
4800
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
4801
+ <var> request</var> and <var> response</var> .
4802
+
4779
4803
<li>
4780
4804
<p> If one of the following is true
4781
4805
@@ -5171,6 +5195,10 @@ run these steps:
5171
5195
<a for="header list">append</a> (`<code> Cache-Control</code> `, `<code> max-age=0</code> `) to
5172
5196
<var> httpRequest</var> 's <a for=request>header list</a> .
5173
5197
5198
+ <!-- After this point the request is not further modified before being either
5199
+ retrieved from the cache or sent -->
5200
+ <li><p> Run the <a>WebDriver BiDi before request sent</a> steps with <a>request</a> .
5201
+
5174
5202
<li>
5175
5203
<p> If <var> httpRequest</var> 's <a for=request>cache mode</a> is "<code> no-store</code> " or
5176
5204
"<code> reload</code> ", then:
@@ -5366,7 +5394,12 @@ run these steps:
5366
5394
chapter of <cite> HTTP Caching</cite> [[!HTTP-CACHING]] .
5367
5395
5368
5396
<li><p> Otherwise, set <var> response</var> to <var> storedResponse</var> and set
5369
- <var> response</var> 's <a for=response>cache state</a> to "<code> local</code> ".
5397
+ <var> response</var> 's <a for=response>cache state</a> to
5398
+ "<code> local</code> ".
5399
+
5400
+ <!-- Once BiDi has request interception this will allow changing the response-->
5401
+ <li><p> Run the <a>WebDriver BiDi response started</a> with
5402
+ <var> request</var> and <var> response</var> .
5370
5403
</ol>
5371
5404
</ol>
5372
5405
</ol>
@@ -5638,6 +5671,11 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
5638
5671
5639
5672
<li><p> Wait until all the HTTP response headers are transmitted.
5640
5673
5674
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
5675
+ |request| and |response|.
5676
+
5677
+ <li><p> Let <var> status</var> be the HTTP response's status code.
5678
+
5641
5679
<li><p> Let <var> status</var> be the HTTP response's status code.
5642
5680
5643
5681
<li>
0 commit comments