Chrome 136 Blocks CDP on Default Profiles; Automation Must Bring Its Own User-Data-Dir
Any script, CI job, or scraping stack that launches ordinary Chrome with `--remote-debugging-port` and the default profile now silently fails to open a CDP socket, and the workaround discards session state or forces a move to Chrome for Testing. Teams should audit launch commands before Chrome 136 updates reach their fleet.
Chrome 136 started ignoring `--remote-debugging-port` and `--remote-debugging-pipe` when Chrome runs on the system's default user data directory. The change is anti-abuse: Google wants to stop malicious programs from reaching Cookies and login states through CDP. Automation code that launched Chrome with only the debugging flag now fails with Connection refused, ECONNREFUSED, or "Timed out waiting for websocket endpoint" while the Chrome window still opens.
Fixing it requires passing a non-default `--user-data-dir` alongside the debugging flag, which creates a fresh profile and a listening 9222 port. That trade-off costs login state, Cookies, Local Storage, extensions, and history, so "CDP connects" and "reuse the current Chrome session" are separate problems. An existing Chrome process can also swallow the new command and forward flags to the old instance, leaving the port closed even when the arguments show up in `ps`.
Protocol behavior is unchanged: WebSocket communication, Runtime, Page, Network, DOM, Debugger, Browser, and `/json/version` and `/json/list` all work as before. Playwright's `launchPersistentContext` and manual CDP connections hit the restriction hardest, while ChromeDriver and Playwright's managed temporary directories mostly escape it. Chrome for Testing, with its isolated profile and version-matched ChromeDriver, is the recommended path; Chrome 144 adds a user-authorization mode via `chrome://inspect/#remote-debugging`, where a connection pops an allow prompt instead of relying on flags.
Google's security rationale targets malware that reads Cookies and login state through CDP, yet the same restriction blocks legitimate scraper and automation scripts that never touch sensitive data; the burden lands on anyone who launches ordinary Chrome with the debugging flag.
The existing-process reuse failure predates 136, but the new default-profile restriction makes the silent no-port situation far more common, so teams will misdiagnose it as firewall or port conflicts.
Chrome 144's interactively authorized debugging shows the browser's direction: remote debugging becomes an explicit, human-approved action rather than a command-line flag, which pushes automation further toward Chrome for Testing and dedicated profiles.
This cut from 136 is pretty harsh — /json/list opens fine but WebSocket can't connect; without a heads-up this pitfall can waste half a day. Sticking with Chrome for Testing is a solid suggestion; regular Chrome has always been awkward for automation.
Mainly, if you're testing a webview embedded in an app, Chrome for Testing isn't a good fit.