Google Account sign-in fails when the daemon launches official Chrome

Author: ao-kamalCreated Aug 16, 2026Updated Aug 16, 2026

What happens

Google Account sign-in (accounts.google.com, GBP, GSC, GA4) fails in a daemon-launched browser with:

This browser or app may not be secure

This happens even when the daemon launches the installed official chrome.exe via Playwright channel: "chrome" and an isolated --user-data-dir. Daily Profile 1 is not involved.

Why

Playwright's Chromium launcher always adds --remote-debugging-pipe (packages/playwright-core/src/server/chromium/chromium.ts defaultArgs()). Chromium treats that pipe as automation-controlled (issue 40746300; CL 2290692). Google's help page says they block browsers "controlled through software automation rather than a human" (Sign in with a supported browser).

--enable-automation is not the only signal. Stripping Playwright defaults, --disable-blink-features=AutomationControlled, and hiding navigator.webdriver does not make Google Account sign-in work. We measured that on a current official Chrome (M151) with an isolated profile.

Chrome 136+ also ignores --remote-debugging-port / --remote-debugging-pipe on the default profile unless a non-standard --user-data-dir is set (Chrome blog). Isolated profile is required for CDP. It is not sufficient for the password step if Playwright launched the process.

What does work

Two phases. Isolated profile is fine. Daily Profile 1 is not required.

  1. Human signs in on official chrome.exe with only --user-data-dir=<isolated>, --no-first-run, --no-default-browser-check. No debug port. No pipe. No Playwright.
  2. Later attach: chrome://inspect/#remote-debugging (Chrome 144+, Chrome DevTools MCP) or restart the same profile with a nonzero --remote-debugging-port and connectOverCDP.

This matches Pavel Feldman on playwright-mcp#148 (Jul 2025): log in with --user-data-dir, then use that directory. Chrome DevTools MCP's README says the same: WebDriver-launched Chrome can block site sign-in; start Chrome yourself, then attach.

Port 0 is treated as automation. Do not use it.

Ask

Document this in the README / skill so agents stop treating channel: "chrome" as a Google login fix. A launch path that OS-spawns official Chrome and attaches over CDP (instead of launchPersistentContext) is the durable --channel chrome meaning.

Not opening a PR. Sharing the finding and the recipe we confirmed on Windows with official Chrome + isolated profile.

Sources