Skip to content

Commit 60e9ff5

Browse files
authored
WebDriver BiDi: override Accept-Language header
Tests: web-platform-tests/wpt#55977.
1 parent 0f3e00d commit 60e9ff5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

fetch.bs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4663,6 +4663,27 @@ the response. [[!HTTP-CACHING]]
46634663
<var>request</var>'s <a for=request>header list</a>.
46644664
</ol>
46654665

4666+
<li>
4667+
<p>If <var>request</var>'s <a for=request>header list</a>
4668+
<a for="header list">does not contain</a> `<code>Accept-Language</code>` and <var>request</var>'s
4669+
<a for=request>client</a> is non-null:
4670+
4671+
<ol>
4672+
<li><p>Let <var>emulatedLanguage</var> be the <a>WebDriver BiDi emulated language</a> for
4673+
<var>request</var>'s <a for=request>client</a>.
4674+
4675+
<li><p>If <var>emulatedLanguage</var> is non-null:
4676+
4677+
<ol>
4678+
<li><p>Let <var>encodedEmulatedLanguage</var> be <var>emulatedLanguage</var>,
4679+
<a>isomorphic encoded</a>.
4680+
4681+
<li><p><a for="header list">Append</a>
4682+
(`<code>Accept-Language</code>`, <var>encodedEmulatedLanguage</var>) to <var>request</var>'s
4683+
<a for=request>header list</a>.
4684+
</ol>
4685+
</ol>
4686+
46664687
<li><p>If <var>request</var>'s <a for=request>header list</a>
46674688
<a for="header list">does not contain</a> `<code>Accept-Language</code>`, then user agents should
46684689
<a for="header list">append</a> (`<code>Accept-Language</code>, an appropriate

0 commit comments

Comments
 (0)