Repository navigation
Conversation
Dia (The Browser Company) is Chromium-based and stores cookies exactly like Chrome, but it is missing from BROWSER_REGISTRY. On a machine where Dia holds the live sessions, cookie-import-browser reports "Detected browsers: Chrome, Arc" and the picker comes up nearly empty. Verified against a real Dia profile on macOS: profile root ~/Library/Application Support/Dia/User Data/, Keychain service "Dia Safe Storage", v10 payloads with the 32-byte domain-hash prefix that decryptCookie() already strips. No decryptor change needed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Contributor
|
Thanks for the Dia registry contribution and detailed reproduction. Its registry/alias/documentation scope is now covered by merged #2964 (v1.90.0.0), so I’m closing this PR as superseded rather than merging the branch separately. The merged release explicitly retains the native Dia qualification caveat; it does not claim we reproduced the contributor’s live-session evidence. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
I run Dia as my daily browser, so every session I care about lives in Dia's profile.
/setup-browser-cookiestold me "Detected browsers: Chrome, Arc" and the picker listed almost nothing, because those two are the browsers I stopped using. From the outside that reads as "cookie import is broken", and I nearly wrote it off. Dia is Chromium and stores cookies exactly like Chrome, so it only needs a registry entry.Closes #2938.
Live evidence
Before, built from this branch's parent commit (v1.87.5.0):
After, same machine, same binary rebuilt with the one-line entry:
The last step is the one that matters:
/settings/profileredirects an anonymous session to the login page, and here it renders the signed-in settings page with my account name in the nav. The imported Dia session authenticates.Decryption needed no change. Dia writes
v10payloads, PBKDF2-HMAC-SHA1 oversaltysaltat 1003 iterations, AES-128-CBC with a 16-space IV, and the 32-byte domain-hash prefix thatdecryptCookie()already strips unconditionally.Scope
BROWSER_REGISTRY(browse/src/cookie-import-browser.ts), plus the browser lists inREADME.md,BROWSER.md,ARCHITECTURE.mdanddocs/skills.md. NoVERSIONorCHANGELOG.mdedit, so the version gate stays out of it.bun test test/skill-validation.test.ts test/setup-browser-hint.test.ts(354 pass, 0 fail).linuxDataDirorwindowsDataDir. I also did not run the fullbun run test:freesuite to green: it has failures on my machine incso-*andplan-count-*, and those same tests fail identically on an unmodified v1.87.5.0 checkout, so they are pre-existing here and untouched by this diff.Liveness proof (required for external contributors)
gh api user --jq .login→JonnyFi.Blurred my surname for obvious reasons :)
Checklist
GSTACK PRtyped live into a real surface) or PR author is @garrytan (owner exemption)