--password-store=basic does nothing on a Mac. It is Linux's switch: it picks which store Chromium keeps passwords in on Linux, from GNOME Libsecret, three versions of KWallet and a plain-text store called basic. A Mac build has no code that reads it, so Chrome starts, accepts the flag without a word and goes on asking the macOS keychain. The Mac switch is --use-mock-keychain. Mosaic sends both on every launch, from one list, because each one is right on one platform and inert on the other.
What strings says about --password-store=basic on a Mac
We stopped trusting flag names after shipping switches that never existed. So we counted exact-line matches of each name with strings on the framework binary of our engine, Tesseract Chrome, and of the machine's own Google Chrome:
use-mock-keychain Tesseract Framework 1 Google Chrome Framework 2
password-store Tesseract Framework 0 Google Chrome Framework 0
Zero means no code in the build knows the name. --password-store is not ignored because of anything we did to the engine. Google's own Mac Chrome does not contain it either. Chromium's Linux password storage page documents the values (gnome-libsecret, kwallet, kwallet5, kwallet6, basic) and says Chromium falls back to basic when the store it asked for is missing. Chromium's Mac build instructions name the other one: to avoid the "Chromium Safe Storage" dialog on a developer build, run with --use-mock-keychain.
So a launch line that passes only --password-store=basic to stop a prompt is half a fix. On Linux it stops the keyring prompt. On a Mac the keychain prompt arrives anyway, and the flag in the command line makes it look as if somebody already dealt with it.
Bring a logged-in session in, take it out, keep it sealedIn Mosaic: Cookie jars. Import, export and keep cookies, encrypted on disk. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.
Mosaic is a desktop app
Email yourself the link and open it on your computer.
Where the prompt comes from
The dialog reads:
"Tesseract" wants to use your confidential information stored in
"Chromium Safe Storage" in your keychain.
Two names in one sentence, because Chromium Safe Storage is compiled into the binary rather than written in a translatable string, so our rename of the product does not reach it. Chromium encrypts cookies and saved passwords with a key it keeps in the keychain under that item, and reads it at startup.
The keychain hands the key over without asking only to code identities on the item's access list. Our launcher bundles are signed ad hoc, which makes the signature a hash of the bundle's contents, so a launcher dressed for its next window slot is a different application to the keychain. Clicking Always Allow grants the identity that asked, and the next launch is a different one. Nothing converges.
Without a window it is worse than a dialog. The first bare launch of our finished engine sat at 0% CPU with no window and no DevTools port. sample on the process named it in three seconds: the main thread was parked in SecItemCopyMatching, waiting for an answer to a dialog it had nowhere to draw. A missing flag looks like a hang, not an error.
Why we send both flags anyway
Either flag alone is a line that is correct on one platform and silently inert on another, which is the failure we keep finding in this codebase. So they travel together on every platform, as one constant in the launcher:
export const KEYCHAIN_FREE_FLAGS = ['--password-store=basic', '--use-mock-keychain']
Every launch spreads that list into its arguments, and the same pair lives in one shared file for the scripts that start a browser outside the app. Chromium honours the last copy of a switch, so a profile's own extra arguments could hand the keychain back with a stray --password-store=. The launcher re-applies ours after the user's.
The mock keychain fixes the dialog and creates a different problem. The password it substitutes is a constant in Chromium's source, so with it alone every cookie in every profile can be decrypted by anyone holding the folder. We measured exactly that, and the fix, a per-profile cookie password set by the engine and derived from the store's data key, is in what the mock keychain does to cookies and one cookie key per profile.
The prompts that kept coming were never the app's
A report came in that the dialog arrived over and over, with a correct guess attached: it seemed to appear mostly during testing. Measured off the live argv of a profile started through the app, both flags were present. Every prompt came from something that started a browser without going through the launcher: a comparison script that runs a real Google Chrome as the control, the script that renders the disk-image artwork in a headless one, and throwaway probe scripts.
There was no single place to fix, so the rule became a check. check:keychain asserts that the two lists still agree, that every launch includes them, that a profile's extra arguments cannot undo them, and that every browser argv in our scripts carries the shared constant. It had to be widened twice while we wrote it. Finding the first ] after a spawn( call found four of six scripts, because an args[0] inside the argv closed the bracket early. Anchoring on spawn( found five, because one script builds its array first and spawns it later. The check now walks out from --user-data-dir to the array that contains it, and a floor of six files turns a detector that quietly stops finding them into a failure.
Measured after, both argv shapes started for real, off-screen:
Tesseract DevTools up in 1639ms SecurityAgent 0 -> 0
stock Chrome DevTools up in 3939ms SecurityAgent 0 -> 0
SecurityAgent is the process macOS starts to draw the dialog. It did not start once. We did not run the case without the flags, because proving it would have put the dialog on the screen of the person who asked for it to stop. How the cookie jars those launches write are sealed on disk is on the cookie jars page.
Sources
- Chromium docs: Linux Password Storage, read November 3, 2026
- Chromium docs: Checking out and building Chromium for Mac, read November 3, 2026






