Skip to content

Commit 394a74f

Browse files
WebDriver BiDi emulated user-agent
Support for user-agent emulations.
1 parent e28f9a5 commit 394a74f

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
@@ -5986,6 +5986,21 @@ run these steps:
59865986
the <a data-lt="structured field token">token</a> <code>prefetch</code>) in
59875987
<var>httpRequest</var>'s <a for=request>header list</a>.
59885988

5989+
<li>
5990+
<p>If <var>httpRequest</var>'s <a for=request>header list</a> <a for="header list">does not
5991+
contain</a> `<code>User-Agent</code>`, then:
5992+
5993+
<ol>
5994+
<li><p>Let <var>userAgent</var> be the result of running the [=WebDriver BiDi emulated
5995+
User-Agent=] with <var>httpRequest</var>'s <a for=request>client</a>.
5996+
5997+
<li><p>If <var>userAgent</var> is null, set <var>userAgent</var> to <a>default
5998+
`<code>User-Agent</code>` value</a>.
5999+
6000+
<li><p><a for="header list">Append</a> (`<code>User-Agent</code>`, <var>userAgent</var>) to
6001+
<var>httpRequest</var>'s <a for=request>header list</a>.
6002+
</ol>
6003+
59896004
<li><p>If <var>httpRequest</var>'s <a for=request>header list</a>
59906005
<a for="header list">does not contain</a> `<code>User-Agent</code>`, then user agents should
59916006
<a for="header list">append</a> (`<code>User-Agent</code>`,

0 commit comments

Comments
 (0)