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

sadym-chromium left a comment (whatwg/fetch#1851)

> I now also wonder at what point implementations ask WebDriver for this value as it seems unlikely to happen in het network layer, where the User-Agent value is currently appended.

@annevk in Chromium, we rely on [`Emulation.setUserAgentOverride`](https://chromedevtools.github.io/devtools-protocol/tot/Emulation/#method-setUserAgentOverride) method, which sets the user agent override, which is [read in the renderer](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/loader/frame_loader.cc;drc=48d6f7175422b2c969c14258f9f8d5b196c28d18;l=1496).

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

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

Received on Tuesday, 16 September 2025 15:45:25 UTC