mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-08-01 02:06:17 -04:00
A caller-supplied User-Agent overrides the built-in default and goes out on the wire, so reject non-printable values the same way Emulation.setUserAgentOverride and the --user-agent flag do. We deliberately do NOT apply validateUserAgent's reserved (Mozilla) check here: unlike the Emulation override (kept Lightpanda-branded to keep go-rod working), setExtraHTTPHeaders is the intended, Chrome-compatible escape hatch for setting a real browser-like User-Agent, which by definition contains Mozilla. Refs #2704