Repository navigation
Conversation
Headless Chrome that reaches a locked gnome-keyring over the session bus stalls profile startup before the first navigation is issued, so every CDP URL surface reports empty or placeholder values and the browser lanes fail target_not_allowed. Verification browsers never read a real keyring, so both raw launchers now pass --password-store=basic.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
TL;DR: The flag fixes it here too. I faked a locked keyring. Chrome hung on it, just like your box. With the flag, Chrome never called it. I ran this on head There is no gnome-keyring on my box. So I wrote a small stand-in. It owns the keyring name on a private bus. It says the keyring is locked. It never answers the unlock prompt.
Base failed fast with The probe shows the same thing up close:
Every no-flag run called Unlock, then Prompt. Every flag run made zero keyring calls. Waiting 15 seconds changed nothing. Launchers. I found no missed browser launch. Two small notes are in the fold below. Tests. The PR changes no tests. I ran the closest one,
Not run: Edit: results are in the follow-up. A fake locked KWallet stalls base, and the flag fixes it. Still not run: real gnome-keyring, real KWallet, my real session,
Thanks, BaaRai, for the bisect. The prompt objects were the key clue. Launcher and KDE notesBoth raw launchers get the flag. The other launches go through Playwright. Playwright 1.58.2 adds Two small notes, not blockers:
My desktop is KDE 6, with KWallet. Chromium 154 picks KWallet on KDE. I read that in the source. I did not test a locked KWallet. How the fake keyring worksIt is a short Python script. It owns
That is the stand-in for a locked keyring with no one to answer. It is not gnome-keyring itself. The private bus had no service files. So nothing could start by itself. Every run used a clean env. It had a fake home and its own bus address. Bus calls with no keyring at allI watched an empty private bus with
The KDE row had no All twelve runs loaded the page. Nobody owned those names. Source notesFrom tag 154.0.8037.57.
CommandsEvery run used Test setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
|
TL;DR: A locked KWallet stalls base the same way, and the flag fixes it. Plain Electron startup never asks the keyring. Only an app's own Still head Fake locked KWalletMy desktop is KDE 6. So I faked KWallet this time. The fake runs on a private bus. It says the wallet is closed. It never finishes opening it.
The probe agrees. I ran it on Chromium and Google's test build.
With no flag, Chrome called Electron laneThe PR does not touch Electron. Neither Electron path passes the flag. But Electron leaves the keyring alone at startup. I used Electron 44.7.0 (MIT). That is the version the docs name. It ships Chromium 152.
Stock Electron does not encrypt cookies. So startup needs no key. A
Still not run
How the fake KWallet worksIt is a short Python script. It uses
It is not KWallet itself. The bus had no service files. Every run used a clean env and a fake home. Electron detailCode paths, the same on base and head:
A caller can still pass the flag through Electron sets the bus to My REA captures used a windowless app. The app finished its checks in 11 ms. Then both captures stalled until my 150 s timeout. I did not find out why. A window plus CommandsEvery run used Test setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
Review of morluto#1432 flagged that the documented manual Chrome command can hit the same locked-keyring startup stall the launchers were fixed for, since desktop users reach keyrings gnome-keyring and KWallet alike.
|
This is exactly the confirmation the PR needed, thank you. The fake locked keyring reproducing the stall on a machine that has no gnome-keyring at all, and the flag eliminating every keyring call, closes the loop on causality across boxes. The KWallet result matters too: it shows the stall is a desktop-secret-service behavior, not a gnome-keyring quirk, so KDE boxes are covered by the same flag, and I have noted that in the PR description language ('a reachable but locked desktop keyring') rather than gnome-specific wording. Your launcher survey matches what I found: the two raw spawn sites were the only REA-owned launches without the flag, and Playwright's own default already passes it for the rest. On your two notes: I added --password-store=basic to the manual launch recipe in docs/browser-observation.md (aa9cc0a) with one sentence explaining the stall, since a user following that command on an affected box would otherwise recreate #1384 by hand. For the Electron lane I left it alone: plain Electron startup never touches the keyring per your probe, the lane's app does not call safeStorage, and Playwright's default args apply there anyway. Not-run lists line up with mine: real gnome-keyring on a desktop with an unlocked session passes by construction (that is the clean-machine case from #1384), and verify:electron is unaffected for the reason above. |
Summary
Both raw browser-lane launchers now pass
--password-store=basic. Verification browsers never read a real keyring, and on Linux a reachable but locked desktop keyring stalls headless Chrome profile startup before the first navigation is issued, which is the real root cause of the empty CDP URLs tracked in #1384.Problem and expected behavior
On a machine with a desktop session bus whose login keyring is locked (reproduced under WSL with an XFCE session running), every headless Chrome build tried (Kali Chromium 150.0.7871.181, official Chrome-for-Testing 150.0.7871.124 and 154.0.8037.57) reports for the startup page: main-frame URL
""(or ":" on 150),securityOrigin":://,getNavigationHistory [""],DOMSnapshotdocuments with nodocumentURL, and storage agents rejecting with frame-not-found.inspect_web_pagetherefore failstarget_not_allowedon main and the wholeverify:browserlane is blocked.The page itself settles on
about:blank:Runtime.evaluateinside the page reportslocation.href === "about:blank"with empty body text, and a startup--log-net-logcapture contains zero URL requests and zero proxy events. The navigation is never issued. The keyring daemon shows one pending secret-store prompt object per probe run (/org/freedesktop/secrets/prompt/p1..pN): headless Chrome reaches gnome-keyring over the session bus, the unlock prompt can never be answered, and profile startup stalls before the initial navigation.An environment bisect isolates it:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/busalone, in an otherwise empty environment, reproduces the stall with the same binary and flags; a dead bus path,env -i, or--password-store=basiceach load the page normally. Other machines explain the earlier confusion: a desktop that unlocks the keyring at login (CassieFox23's runs in #1384) is clean, and CI runners have no session bus at all, so both see real URLs with the same builds.Expected behavior: the lane launches browsers it owns, so it must not depend on desktop keyring state. REA already fails closed on an uncommitted frame, which is correct; the launcher should simply not stall in that state.
Change and scope
scripts/verify-real-browser.mjsandscripts/lib/browser-runtime-fixture-lifecycle.mjsgain--password-store=basicnext to--headless=new, plus a shortdocs/testing.mdnote recording the failure mode. Nothing else changes: no product source, no capture semantics, no fallbacks. PR #1411 is closed in favor of this fix; its target-URL fallback would have authorized capturing a page that never loaded, which is the wrong direction once the browser actually loads pages.--password-store=basicis inert on Windows and macOS and equivalent to the default on Linux boxes without a session bus, so CI behavior is unchanged.Contract and boundary impact
not applicable: verification lane launch flags and documentation only; no contract, schema, provider, or capture-path change.
Evidence and regression coverage
Before, on the affected machine (WSL Kali, XFCE session with locked keyring, official CfT 154.0.8037.57 at
REA_BROWSER_EXECUTABLE), main fails the lane on the first observation withtarget_not_allowed. With only this flag added to main's launcher, the completenpm run verify:browserpasses:"browser": "Chrome/154.0.8037.57"", "verified": true, zerotarget_not_allowedoccurrences and zero script-metadata failures in the log. The same flag is what the pushed branch runs, andcheck:fastpasses.The unit suite needs no new coverage: the change is launcher-only and cannot be exercised by the fake CDP fixtures, and the lane itself is the oracle. Issue #1384 carries the full probe matrix, the environment bisect, and the correction of my earlier official-builds claim.