@@ -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,13 @@ 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 id=] is used by WebDriver-BiDi. When a request is [=request/cloned=] ,
2183
+ the created request gets a unique [=request id=] . [[!WEBDRIVER-BIDI]]
2184
+
2167
2185
<hr>
2168
2186
2169
2187
<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
@@ -4779,6 +4797,11 @@ steps:
4779
4797
<a for=request>URL</a> , <var> fetchParams</var> 's <a for="fetch params">request</a>' s
4780
4798
<a for=request>initiator type</a> , <var> global</var> , <var> cacheState</var> ,
4781
4799
<var> bodyInfo</var> , and <var> responseStatus</var> .
4800
+
4801
+ <li><p> If <var> response</var> is a <a>network error</a> , run
4802
+ the <a>WebDriver BiDi fetch error</a> steps with <var> request</var> . Otherwise
4803
+ run the <a>WebDriver BiDi response completed</a> steps with
4804
+ <var> request</var> and <var> response</var> .
4782
4805
</ol>
4783
4806
4784
4807
<li>
@@ -5129,6 +5152,13 @@ these steps:
5129
5152
<a>filtered response</a> ; otherwise to <var> response</var> 's
5130
5153
<a for="filtered response">internal response</a> .
5131
5154
5155
+ <!-- the serviceworker spec is responsible for emmitting the WebDriver BiDi
5156
+ request events in this case. That's necessary to ensure that the events are
5157
+ only generated if the serviceworker will handle the fetch, and to get the
5158
+ correct event ordering in the case of network fallback -->
5159
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
5160
+ <var> request</var> and <var> response</var> .
5161
+
5132
5162
<li>
5133
5163
<p> If one of the following is true
5134
5164
@@ -5663,6 +5693,10 @@ run these steps:
5663
5693
<p class=note> This intentionally does not depend on <var> httpRequest</var> 's
5664
5694
<a for=request>credentials mode</a> .
5665
5695
5696
+ <!-- After this point the request is not further modified before being either
5697
+ retrieved from the cache or sent -->
5698
+ <li><p> Run the <a>WebDriver BiDi before request sent</a> steps with <a>request</a> .
5699
+
5666
5700
<li><p> Set <var> httpCache</var> to the result of <a>determining the HTTP cache partition</a> ,
5667
5701
given <var> httpRequest</var> .
5668
5702
@@ -5758,6 +5792,8 @@ run these steps:
5758
5792
<li><p> <a>If aborted</a> , then return the <a for=/>appropriate network error</a> for
5759
5793
<var> fetchParams</var> .
5760
5794
5795
+ <li><p> If <var> response</var> is not null, run the <a>WebDriver BiDi response
5796
+ started</a> steps with <var> request</var> and <var> response</var> .
5761
5797
5762
5798
<!-- If response is still null, we require a forwarded request. -->
5763
5799
<li>
@@ -6021,6 +6057,9 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
6021
6057
6022
6058
<li><p> Wait until all the HTTP response headers are transmitted.
6023
6059
6060
+ <li><p> Run the [=WebDriver BiDi response started=] steps with
6061
+ |request| and |response|.
6062
+
6024
6063
<li><p> Let <var> status</var> be the HTTP response's status code.
6025
6064
6026
6065
<li>
0 commit comments