Skip to content

Commit 19b4e9a

Browse files
WebDriver BiDi emulated user-agent
Support for user-agent emulations.
1 parent 087351a commit 19b4e9a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

fetch.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5889,6 +5889,21 @@ run these steps:
58895889
the <a data-lt="structured field token">token</a> <code>prefetch</code>) in
58905890
<var>httpRequest</var>'s <a for=request>header list</a>.
58915891

5892+
<li>
5893+
<p>If <var>httpRequest</var>'s <a for=request>header list</a> <a for="header list">does not
5894+
contain</a> `<code>User-Agent</code>`, then:
5895+
5896+
<ol>
5897+
<li><p>Let <var>userAgent</var> be the result of running the [=WebDriver BiDi emulated
5898+
User-Agent=] with <var>httpRequest</var>'s <a for=request>client</a>.
5899+
5900+
<li><p>If <var>userAgent</var> is null, set <var>userAgent</var> to <a>default
5901+
`<code>User-Agent</code>` value</a>.
5902+
5903+
<li><p><a for="header list">Append</a> (`<code>User-Agent</code>`, <var>userAgent</var>) to
5904+
<var>httpRequest</var>'s <a for=request>header list</a>.
5905+
</ol>
5906+
58925907
<li><p>If <var>httpRequest</var>'s <a for=request>header list</a>
58935908
<a for="header list">does not contain</a> `<code>User-Agent</code>`, then user agents should
58945909
<a for="header list">append</a> (`<code>User-Agent</code>`,

0 commit comments

Comments
 (0)