Cloudflare Turnstile compatibility, Chrome version pinning to Electron's real Chromium, and Google sign-in and Gmail fixes via Firefox UA swap and a minimal window.chrome.runtime stub.
SEC-CH-UA, SEC-CH-UA-Mobile, and SEC-CH-UA-Platform headers with the overridden User-Agent so Turnstile challenges pass; strip Client Hints for Firefox and Safari presetsChrome/ and Edg/ tokens so navigator.userAgent, navigator.userAgentData, and outgoing SEC-CH-UA all agreeaccounts.google.com (and drop Client Hints for that host) so Google serves the Firefox sign-in path instead of blocking embedded-browser detectionwindow.chrome.runtime stub on Google domains (excluding hangouts/drive) via the web-content preload so Google's "is this real Chrome?" probe succeedsapplyCookiePolicy into applyRequestHeaderPolicy + applyResponseHeaderPolicy so cookie stripping, Client Hints alignment, and host-specific UA overrides share the single onBeforeSendHeaders listener Electron allows per session