@@ -110,6 +110,12 @@ urlPrefix:https://tc39.es/ecma262/#;type:dfn;spec:ecma-262
110
110
"href": "https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https",
111
111
"publisher": "IETF",
112
112
"title": "Service binding and parameter specification via the DNS (DNS SVCB and HTTPS RRs)"
113
+ },
114
+ "WEBDRIVER-BIDI": {
115
+ "authors": [],
116
+ "href": "https://w3c.github.io/webdriver-bidi/",
117
+ "publisher": "W3C",
118
+ "title": "WebDriver BiDi"
113
119
}
114
120
}
115
121
</pre>
@@ -2123,6 +2129,11 @@ Unless stated otherwise, it is false.
2123
2129
2124
2130
<p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
2125
2131
2132
+ <p> A <a for=/>request</a> has an associated <dfn export for=request>navigation id</dfn> .
2133
+ Unless stated otherwise, it is null.
2134
+
2135
+ <p class=note> This is for exclusive use by HTML's navigate algorithm. [[!HTML]]
2136
+
2126
2137
<p> A <a for=/>request</a> has an associated boolean <dfn export for=request>render-blocking</dfn> .
2127
2138
Unless stated otherwise, it is false.
2128
2139
@@ -2164,6 +2175,15 @@ otherwise, it is unset.
2164
2175
<a for=request>done flag</a> , and <a for=request>timing allow failed flag</a> are used as
2165
2176
bookkeeping details by the <a for=/>fetch</a> algorithm.
2166
2177
2178
+ <p> A <a for=/>request</a> has an associated
2179
+ <dfn export for=request id=concept-request-id>request id</dfn> which is a unique
2180
+ string automatically set when the <a for=/>request</a> is created.
2181
+
2182
+ Note: the [=request/request id=] is used by WebDriver-BiDi. It remains constant
2183
+ across all requests resultsing from a redirect of an initial request. When a
2184
+ request is [=request/cloned=] , the created request gets a unique
2185
+ [=request/request id=] . [[!WEBDRIVER-BIDI]]
2186
+
2167
2187
<hr>
2168
2188
2169
2189
<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
@@ -4779,6 +4799,11 @@ steps:
4779
4799
<a for=request>URL</a> , <var> fetchParams</var> 's <a for="fetch params">request</a>' s
4780
4800
<a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> ,
4781
4801
<var> bodyInfo</var> , and <var> responseStatus</var> .
4802
+
4803
+ <li><p> If <var> response</var> is a <a>network error</a> , run
4804
+ the <a>WebDriver BiDi fetch error</a> steps with <var> request</var> . Otherwise
4805
+ run the <a>WebDriver BiDi response completed</a> steps with
4806
+ <var> request</var> and <var> response</var> .
4782
4807
</ol>
4783
4808
4784
4809
<li>
@@ -5129,6 +5154,13 @@ these steps:
5129
5154
<a>filtered response</a> ; otherwise to <var> response</var> 's
5130
5155
<a for="filtered response">internal response</a> .
5131
5156
5157
+ <!-- the serviceworker spec is responsible for emmitting the WebDriver BiDi
5158
+ request events in this case. That's necessary to ensure that the events are
5159
+ only generated if the serviceworker will handle the fetch, and to get the
5160
+ correct event ordering in the case of network fallback -->
5161
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
5162
+ <var> request</var> and <var> response</var> .
5163
+
5132
5164
<li>
5133
5165
<p> If one of the following is true
5134
5166
@@ -5663,6 +5695,10 @@ run these steps:
5663
5695
<p class=note> This intentionally does not depend on <var> httpRequest</var> 's
5664
5696
<a for=request>credentials mode</a> .
5665
5697
5698
+ <!-- After this point the request is not further modified before being either
5699
+ retrieved from the cache or sent -->
5700
+ <li><p> Run the <a>WebDriver BiDi before request sent</a> steps with <var> request</var> .
5701
+
5666
5702
<li><p> Set <var> httpCache</var> to the result of <a>determining the HTTP cache partition</a> ,
5667
5703
given <var> httpRequest</var> .
5668
5704
@@ -5758,6 +5794,8 @@ run these steps:
5758
5794
<li><p> <a>If aborted</a> , then return the <a for=/>appropriate network error</a> for
5759
5795
<var> fetchParams</var> .
5760
5796
5797
+ <li><p> If <var> response</var> is not null, run the <a>WebDriver BiDi response
5798
+ started</a> steps with <var> request</var> and <var> response</var> .
5761
5799
5762
5800
<!-- If response is still null, we require a forwarded request. -->
5763
5801
<li>
@@ -6021,6 +6059,9 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
6021
6059
6022
6060
<li><p> Wait until all the HTTP response headers are transmitted.
6023
6061
6062
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
6063
+ |request| and |response|.
6064
+
6024
6065
<li><p> Let <var> status</var> be the HTTP response's status code.
6025
6066
6026
6067
<li>
0 commit comments