@@ -1964,6 +1964,11 @@ Unless stated otherwise, it is false.
19641964
19651965<p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
19661966
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+
19671972<p> A <a for=/>request</a> has an associated boolean <dfn export for=request>render-blocking</dfn> .
19681973Unless stated otherwise, it is false.
19691974
@@ -2005,6 +2010,13 @@ otherwise, it is unset.
20052010<a for=request>done flag</a> , and <a for=request>timing allow failed flag</a> are used as
20062011bookkeeping details by the <a for=/>fetch</a> algorithm.
20072012
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+
20082020<hr>
20092021
20102022<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
@@ -4522,8 +4534,13 @@ steps:
45224534 <a for=request>initiator type</a> is not null, then
45234535 <a for=/>mark resource timing</a> given <var> timingInfo</var> , <var> request</var> 's
45244536 <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> .
45274544 </ol>
45284545
45294546 <li>
@@ -4776,6 +4793,13 @@ these steps:
47764793 <a>filtered response</a> , and to <var> response</var> 's
47774794 <a for="filtered response">internal response</a> otherwise.
47784795
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+
47794803 <li>
47804804 <p> If one of the following is true
47814805
@@ -5171,6 +5195,10 @@ run these steps:
51715195 <a for="header list">append</a> (`<code> Cache-Control</code> `, `<code> max-age=0</code> `) to
51725196 <var> httpRequest</var> 's <a for=request>header list</a> .
51735197
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+
51745202 <li>
51755203 <p> If <var> httpRequest</var> 's <a for=request>cache mode</a> is "<code> no-store</code> " or
51765204 "<code> reload</code> ", then:
@@ -5366,7 +5394,12 @@ run these steps:
53665394 chapter of <cite> HTTP Caching</cite> [[!HTTP-CACHING]] .
53675395
53685396 <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> .
53705403 </ol>
53715404 </ol>
53725405 </ol>
@@ -5638,6 +5671,11 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
56385671
56395672 <li><p> Wait until all the HTTP response headers are transmitted.
56405673
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+
56415679 <li><p> Let <var> status</var> be the HTTP response's status code.
56425680
56435681 <li>
0 commit comments