Re: [whatwg/fetch] [WebDriver BiDi] emulate `user-agent` string (PR #1851)

@sadym-chromium commented on this pull request.



> @@ -5889,11 +5889,20 @@ run these steps:
    the <a data-lt="structured field token">token</a> <code>prefetch</code>) in
    <var>httpRequest</var>'s <a for=request>header list</a>.
 
-   <li><p>If <var>httpRequest</var>'s <a for=request>header list</a>
-   <a for="header list">does not contain</a> `<code>User-Agent</code>`, then user agents should
-   <a for="header list">append</a> (`<code>User-Agent</code>`,
-   <a>default `<code>User-Agent</code>` value</a>) to <var>httpRequest</var>'s
-   <a for=request>header list</a>.
+   <li>
+    <p>If <var>httpRequest</var>'s <a for=request>header list</a> <a for="header list">does not
+    contain</a> `<code>User-Agent</code>`, then:
+
+    <ol>
+     <li><p>Let <var>userAgent</var> be the result of running the <a>WebDriver BiDi emulated
+     User-Agent</a> with <var>httpRequest</var>'s <a for=request>client</a>.

I assume instead it should be:
> [UTF-8 encoding](https://encoding.spec.whatwg.org/#utf-8-encode) of <var>userAgent</var>?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1851#discussion_r2352291292
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1851/review/3229683399@github.com>

Received on Tuesday, 16 September 2025 12:15:51 UTC