Repository navigation
fix(browser): stop the auth-host UA write from cancelling redirects - #15221
Conversation
📝 WalkthroughWalkthroughAuthentication redirects use CDP user-agent overrides when a debugger is attached. The browser tracks pending and confirmed overrides, retries failed operations, and restores the session user-agent when appropriate. Viewport overrides preserve the active authentication identity and accept explicit base user-agents. Cleanup clears authentication state during debugger detachment, guest retirement, viewport reset, and unregister. Tests cover redirects, races, failures, popups, and direct navigation. Merge Risk: 🔵 Low · up to The change prevents authentication redirects from being cancelled, but a bounded risk remains that a failed or detached debugger session could leave later authentication identity updates stale or skipped; owner follow-up is recommended. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 164c5eea-97c3-484a-8431-58e0f5361e41
📥 Commits
Reviewing files that changed from the base of the PR and between 13b10e0 and e8f22e1b966fc16347d71562c33c399fa52f6ce8.
📒 Files selected for processing (3)
src/main/browser/browser-manager-auth-user-agent.test.tssrc/main/browser/browser-manager-viewport-override.test.tssrc/main/browser/browser-manager.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
| if (options.duringRedirect === true || overriddenUa !== undefined) { | ||
| if (this.canOverrideUserAgentOverCdp(guest)) { | ||
| this.authUserAgentOverrideByGuestId.set(guest.id, nextUa) | ||
| // Why: go through the viewport builder rather than writing nextUa raw, so both CDP writers | ||
| // resolve one identity for this URL — Firefox on auth hosts, the profile's clean base off | ||
| // them, any mobile preset preserved. Writing the session UA directly would put the | ||
| // unlaundered Electron token back on the wire. | ||
| void this.sendViewportUserAgentOverride( | ||
| guest, | ||
| (ownerTabId ? this.viewportUaOverrideMobileByTabId.get(ownerTabId) : undefined) ?? | ||
| false, | ||
| url | ||
| ).catch(() => {}) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Keep tracked state synchronized with the CDP override.
Line 990 records nextUa before sendViewportUserAgentOverride() succeeds. Lines 995-1000 suppress command failures. A failed command leaves authUserAgentOverrideByGuestId claiming that the Firefox override is active.
Debugger detachment also clears CDP overrides, but this map is not cleared or reapplied. Later navigations then take the CDP-only path based on stale state. If the debugger is unavailable, the guest keeps the wrong navigator.userAgent.
Set tracked state only after a successful command. Clear or reconcile it on debugger detach. Add failure and detach regression coverage.
Electron visual proof (isolated worktree build)Ran an isolated Orca dev instance for Direct GitLab Google OAuth POST (the reproducing path): Limitation: Not compared against 1.4.184 in this run. Linux / Windows / SSH / already-signed-in Google sessions not tested. The worktree also has extra uncommitted local edits on the same three browser files; this instance compiled that local tree. |
WebContents.setUserAgent() from will-redirect makes Chromium abort the in-flight navigation (ERR_ABORTED) and replay the original request, so any redirect crossing the Google auth-host boundary dies on a blank tab. Route that write through the CDP override, which retargets navigator.userAgent without touching the navigation. Fixes stablyai#15216
e8f22e1 to
d6be90d
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Review status: keep this contributor PRThe redirect-safe CDP path fixes the root cause without touching the out-of-scope Firefox identity, storage-access, client-hints brand, or profile-clear work. Changes made during review
Validation
Release / merge stateThe regression is present in Recommendation: keep PR #15221. No merge performed. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/browser/browser-manager-auth-user-agent.test.ts (1)
111-112: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winShorten the new explanatory comments.
Keep the cancellation and user-agent rationale, but state each comment in one concise line.
src/main/browser/browser-manager-auth-user-agent.test.ts#L111-L112: reduce the stale-UA explanation to one line.src/main/browser/browser-manager-auth-user-agent.test.ts#L251-L254: reduce the redirect failure rationale to one line.src/main/browser/browser-manager-auth-user-agent.test.ts#L342-L344: reduce the CDP precedence rationale to one line.src/main/browser/browser-manager-auth-user-agent.test.ts#L410-L412: reduce the no-debugger rationale to one line.src/main/browser/browser-manager-auth-user-agent.test.ts#L455-L456: reduce the direct-navigation rationale to one line.src/main/browser/browser-manager-viewport-override.test.ts#L509-L511: reduce the CDP-only redirect rationale to one line.As per coding guidelines, “Comments must be concise, non-obvious, and brief—prefer one line; do not explain obvious behavior or walk through code.”
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 77cbe585-9389-48e5-bfcb-37c6b8a9be4e
📒 Files selected for processing (3)
src/main/browser/browser-manager-auth-user-agent.test.tssrc/main/browser/browser-manager-viewport-override.test.tssrc/main/browser/browser-manager.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/main/browser/browser-manager.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.
The auth-host switch writes the Firefox UA through WebContents.setUserAgent on a direct navigation and then moves to the CDP override, and nothing restores that WebContents UA. sendViewportUserAgentOverride read it back as its base identity, so a tab with a viewport preset republished the Firefox UA on every ordinary host afterwards, with sec-ch-ua still saying Chrome. Read the profile's session UA instead, which is the stable base identity at both call sites.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/browser/browser-manager.ts (1)
1168-1171: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShorten the rationale comments.
Both comments exceed the preferred concise form. Keep one non-obvious sentence at each site.
src/main/browser/browser-manager.ts#L1168-L1171: reduce the rationale to one sentence about using the session UA as the stable base identity.src/main/browser/browser-manager-auth-user-agent.test.ts#L500-L504: reduce the rationale to one sentence about preventing the Firefox auth identity from leaking to ordinary hosts.Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f2d2504e-5bf1-4f9f-87f2-896019be2c78
📒 Files selected for processing (2)
src/main/browser/browser-manager-auth-user-agent.test.tssrc/main/browser/browser-manager.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Live Google sign-in on PR head
|
| Item | Value |
|---|---|
| SHA | d6be90d3d50f195f8ec0db870dc5c68e3d6c7e3a |
| Commits | ed9f38a37f stop the auth-host UA write from cancelling redirects · d6be90d3d5 recover auth UA override state |
| Tree | clean (git status empty; no uncommitted src/main/browser/** edits) |
| Instance | Orca Dev label QA-15221-LOGIN, Dock title Orca: pr-15221-head |
| CDP | http://127.0.0.1:9333 |
| Profile | isolated ORCA_DEV_USER_DATA_PATH=/tmp/orca-electron-profile-qa15221.rKAlsX (did not touch the production Orca profile) |
Results — login completed
-
accounts.google.com → authenticated Google Account
- Committed URL:
https://myaccount.google.com/?pli=1 - Visible account: Brennan Benson / [email protected]
loadError: null
- Committed URL:
-
mail.google.com → real inbox (after sign-in)
- Committed URL:
https://mail.google.com/mail/u/0/#inbox - Title:
Inbox (7,777) - [email protected] - Stably Mail - Real mail visible (Linear, Stripe, notifications, etc.)
loadError: null- Note: the first
mail.google.comnavigation, opened before Brennan signed in, landed on the unauthenticated marketing pagehttps://workspace.google.com/intl/en-US/gmail/. After the Workspace session existed, a secondmail.google.comtab reached the inbox. That first hit is not a failed login.
- Committed URL:
-
GitLab Google OAuth (original [Bug]: Redirects that cross the Google auth-host boundary are cancelled by Orca's own UA write in will-redirect — blank tab, no error #15216 POST-started chain) — authenticated
- Opened
https://gitlab.com/users/sign_in, submitted thePOST /users/auth/google_oauth2Google button. - Observed chain (no request failures):
POST https://gitlab.com/users/auth/google_oauth2→ 302GET https://accounts.google.com/o/oauth2/auth?...→ 302GET https://gitlab.com/users/auth/google_oauth2/callback?...→ 302GET https://gitlab.com/→ 200
- Landed signed in as Brennan Benson on the GitLab home/dashboard (
Home · GitLab). - Playwright
requestfailedlist for that navigation: empty.
- Opened
Cookie jar (names only, isolated Partitions/orca-browser/Cookies)
Present, matching a completed Workspace sign-in:
accounts.google.comLSID, __Host-GAPS,__Host-1PLSID,__Host-3PLSID.google.comSID, SIDCC, SSID, HSID, APISID, SAPISID, __Secure-1PSID,__Secure-1PSIDCC,__Secure-1PSIDTS,__Secure-3PSID, ….workspace.google.comentries (APPS_MARKETING_SIGNALS,_ga,__utm*)- After Gmail:
mail.google.comOSID,__Secure-OSID,__Host-GMAIL_SCH_* - After GitLab OAuth:
.gitlab.comgitlab_user,gitlab.comknown_sign_in
No cookie values were captured or posted.
Navigation aborts
Compared with the pre-fix session that produced 224 net::ERR_ABORTED on mail.google.com in 2m35s plus 2× HTTP 429:
| Signal | This run |
|---|---|
net::ERR_ABORTED in the electron-vite / main log |
0 |
www.google.com/sorry/index |
0 |
| HTTP 429 on accounts.google.com / mail.google.com | 0 (the only 429 in the log is an unrelated Claude usage refresh) |
Store loadError on all four tabs |
null |
GitLab OAuth requestfailed |
[] |
What was not tested
- Production Orca profile / persisted user data
- Windows or Linux
- SSH / remote-host embedded browser
- Other OmniAuth buttons (GitHub, Bitbucket, Salesforce)
- FedCM-vs-popup fallback specifically
- Cold start after cookie expiry / next-day session restore
- Mixed client/host versions
I did not merge. Merge call is Brennan's.
|
Thanks for the PR! |
Review summary (post-merge)Reviewed the full change with subagents plus an independent precedent check. One real defect was found before merge, fixed, and is included in the merged commit range; everything else came back clean. Blocker found and fixed —
|
Follow-up 1 (direct POST onto an auth host) — measured, not reachableRan the isolated harness for this rather than reasoning about it. No Orca, no Google: local HTTP server, a form that
The write demonstrably took effect — after navigation, Conclusion: One detail worth recording: the in-flight request still went out with the Chrome UA, because No fix needed, and no follow-up PR for this one. Follow-up 2 (debugger re-attach) stands, and it got more relevantThat one reproduces on inspection and is worth tracking: Chromium drops all It also bears on adjacent work: a proposal to fix the |
…notices (#15542) * fix(browser): name the requesting frame and the permission in denial notices Two defects in the same notice, both found by the review of #15481 and left out of it deliberately. The notice named the wrong site. setPermissionRequestHandler passed webContents.getURL(), which is the top-level document, so a permission request from a cross-origin sub-frame was attributed to the embedder. Every PermissionRequest variant carries requestingUrl, so all three call sites now use it and fall back to the top-level document only when it is absent. The notice also showed raw Chromium permission names. humanizePermission mapped two permissions and returned the raw token for the rest. That now matters more: #15481 granted ordinary storage-access and left top-level-storage-access denied, making it the storage denial a user can still hit - rendered as its raw token. The default still returns the raw token. Inventing prose for a permission nobody has seen is worse than showing its real name. Does not change any permission verdict, and does not fix Google sign-in (#15221). * fix(browser): keep permission denial attribution accurate Capture fallback URLs before asynchronous media permission handling and treat opaque requesters as unknown rather than blaming the top-level page. Clarify permission descriptions and cover origin normalization, navigation races, and mapped copy.
…15221) * fix(browser): stop the auth-host UA write from cancelling redirects WebContents.setUserAgent() from will-redirect makes Chromium abort the in-flight navigation (ERR_ABORTED) and replay the original request, so any redirect crossing the Google auth-host boundary dies on a blank tab. Route that write through the CDP override, which retargets navigator.userAgent without touching the navigation. Fixes #15216 * fix(browser): recover auth UA override state * fix(browser): keep the viewport UA override on the session identity The auth-host switch writes the Firefox UA through WebContents.setUserAgent on a direct navigation and then moves to the CDP override, and nothing restores that WebContents UA. sendViewportUserAgentOverride read it back as its base identity, so a tab with a viewport preset republished the Firefox UA on every ordinary host afterwards, with sec-ch-ua still saying Chrome. Read the profile's session UA instead, which is the stable base identity at both call sites. --------- Co-authored-by: Brennan Benson <[email protected]>
…tablyai#15221) * fix(browser): stop the auth-host UA write from cancelling redirects WebContents.setUserAgent() from will-redirect makes Chromium abort the in-flight navigation (ERR_ABORTED) and replay the original request, so any redirect crossing the Google auth-host boundary dies on a blank tab. Route that write through the CDP override, which retargets navigator.userAgent without touching the navigation. Fixes stablyai#15216 * fix(browser): recover auth UA override state * fix(browser): keep the viewport UA override on the session identity The auth-host switch writes the Firefox UA through WebContents.setUserAgent on a direct navigation and then moves to the CDP override, and nothing restores that WebContents UA. sendViewportUserAgentOverride read it back as its base identity, so a tab with a viewport preset republished the Firefox UA on every ordinary host afterwards, with sec-ch-ua still saying Chrome. Read the profile's session UA instead, which is the stable base identity at both call sites. --------- Co-authored-by: Brennan Benson <[email protected]>
…notices (stablyai#15542) * fix(browser): name the requesting frame and the permission in denial notices Two defects in the same notice, both found by the review of stablyai#15481 and left out of it deliberately. The notice named the wrong site. setPermissionRequestHandler passed webContents.getURL(), which is the top-level document, so a permission request from a cross-origin sub-frame was attributed to the embedder. Every PermissionRequest variant carries requestingUrl, so all three call sites now use it and fall back to the top-level document only when it is absent. The notice also showed raw Chromium permission names. humanizePermission mapped two permissions and returned the raw token for the rest. That now matters more: stablyai#15481 granted ordinary storage-access and left top-level-storage-access denied, making it the storage denial a user can still hit - rendered as its raw token. The default still returns the raw token. Inventing prose for a permission nobody has seen is worse than showing its real name. Does not change any permission verdict, and does not fix Google sign-in (stablyai#15221). * fix(browser): keep permission denial attribution accurate Capture fallback URLs before asynchronous media permission handling and treat opaque requesters as unknown rather than blaming the top-level page. Clarify permission descriptions and cover origin normalization, navigation races, and mapped copy.
…tablyai#15221) * fix(browser): stop the auth-host UA write from cancelling redirects WebContents.setUserAgent() from will-redirect makes Chromium abort the in-flight navigation (ERR_ABORTED) and replay the original request, so any redirect crossing the Google auth-host boundary dies on a blank tab. Route that write through the CDP override, which retargets navigator.userAgent without touching the navigation. Fixes stablyai#15216 * fix(browser): recover auth UA override state * fix(browser): keep the viewport UA override on the session identity The auth-host switch writes the Firefox UA through WebContents.setUserAgent on a direct navigation and then moves to the CDP override, and nothing restores that WebContents UA. sendViewportUserAgentOverride read it back as its base identity, so a tab with a viewport preset republished the Firefox UA on every ordinary host afterwards, with sec-ch-ua still saying Chrome. Read the profile's session UA instead, which is the stable base identity at both call sites. --------- Co-authored-by: Brennan Benson <[email protected]>
…notices (stablyai#15542) * fix(browser): name the requesting frame and the permission in denial notices Two defects in the same notice, both found by the review of stablyai#15481 and left out of it deliberately. The notice named the wrong site. setPermissionRequestHandler passed webContents.getURL(), which is the top-level document, so a permission request from a cross-origin sub-frame was attributed to the embedder. Every PermissionRequest variant carries requestingUrl, so all three call sites now use it and fall back to the top-level document only when it is absent. The notice also showed raw Chromium permission names. humanizePermission mapped two permissions and returned the raw token for the rest. That now matters more: stablyai#15481 granted ordinary storage-access and left top-level-storage-access denied, making it the storage denial a user can still hit - rendered as its raw token. The default still returns the raw token. Inventing prose for a permission nobody has seen is worse than showing its real name. Does not change any permission verdict, and does not fix Google sign-in (stablyai#15221). * fix(browser): keep permission denial attribution accurate Capture fallback URLs before asynchronous media permission handling and treat opaque requesters as unknown rather than blaming the top-level page. Clarify permission descriptions and cover origin normalization, navigation races, and mapped copy.
…tablyai#15221) * fix(browser): stop the auth-host UA write from cancelling redirects WebContents.setUserAgent() from will-redirect makes Chromium abort the in-flight navigation (ERR_ABORTED) and replay the original request, so any redirect crossing the Google auth-host boundary dies on a blank tab. Route that write through the CDP override, which retargets navigator.userAgent without touching the navigation. Fixes stablyai#15216 * fix(browser): recover auth UA override state * fix(browser): keep the viewport UA override on the session identity The auth-host switch writes the Firefox UA through WebContents.setUserAgent on a direct navigation and then moves to the CDP override, and nothing restores that WebContents UA. sendViewportUserAgentOverride read it back as its base identity, so a tab with a viewport preset republished the Firefox UA on every ordinary host afterwards, with sec-ch-ua still saying Chrome. Read the profile's session UA instead, which is the stable base identity at both call sites. --------- Co-authored-by: Brennan Benson <[email protected]>
…notices (stablyai#15542) * fix(browser): name the requesting frame and the permission in denial notices Two defects in the same notice, both found by the review of stablyai#15481 and left out of it deliberately. The notice named the wrong site. setPermissionRequestHandler passed webContents.getURL(), which is the top-level document, so a permission request from a cross-origin sub-frame was attributed to the embedder. Every PermissionRequest variant carries requestingUrl, so all three call sites now use it and fall back to the top-level document only when it is absent. The notice also showed raw Chromium permission names. humanizePermission mapped two permissions and returned the raw token for the rest. That now matters more: stablyai#15481 granted ordinary storage-access and left top-level-storage-access denied, making it the storage denial a user can still hit - rendered as its raw token. The default still returns the raw token. Inventing prose for a permission nobody has seen is worse than showing its real name. Does not change any permission verdict, and does not fix Google sign-in (stablyai#15221). * fix(browser): keep permission denial attribution accurate Capture fallback URLs before asynchronous media permission handling and treat opaque requesters as unknown rather than blaming the top-level page. Clarify permission descriptions and cover origin normalization, navigation races, and mapped copy.




ELI5
Orca changed the browser's user agent in the middle of a redirect. Chromium reacts to that by cancelling the page load and starting over, and a "Sign in with Google" flow cannot start over — so the tab went blank and the click looked ignored. Orca now changes the identity in a way that does not interrupt the load.
What Changed
applyGoogleAuthUserAgenttakes aduringRedirectflag. On that path it no longer callsWebContents.setUserAgent(); it writes the identity through the CDP override instead, reusingsendViewportUserAgentOverrideso both CDP writers resolve one identity per URL.authUserAgentOverrideByGuestId— the CDP override outranks the WebContents UA, sogetUserAgent()stops reporting what the document sees. Without this reading, a guest that entered an auth host by redirect would keep presenting Firefox on every later host. Cleared on guest retire and on shutdown.navigator.userAgentis recoverable; a dead navigation is not.did-start-navigationkeeps thesetUserAgentwrite — it runs before the request is dispatched and does not cancel anything.No change to the wire UA:
setupClientHintsOverridealready rewritesUser-Agentand stripssec-ch-ua*per request for auth-host URLs, independently of this call.Why
WebContents.setUserAgent()insidewill-redirectmakes Chromium abort the in-flight navigation withERR_ABORTED (-3)and replay the original request. A chain that cannot be replayed — one started by aPOST, or one carrying one-time auth state — never lands, so the navigation dies withloadError: nulland the tab is left atdata:text/html,.That is every redirect crossing
GOOGLE_AUTH_HOSTS, which is exactly the "Sign in with Google" path: the provider button POSTs, andaccounts.google.comis reached only by redirect.Isolated on the Electron 43.1.0 the app ships, no Google and no Orca involved — local server,
/start→302→/dest, one arm per process:/startnavigator.userAgentwill-redirectWebContents.setUserAgent()(before this PR)ERR_ABORTED (-3)Emulation.setUserAgentOverride(this PR)Arm B is the defect: the original request is issued twice and
will-redirectfires twice. In that trivial local GET the replay happens to succeed, which is why the damage stays invisible until the chain cannot be replayed.Two alternatives were measured and rejected.
did-redirect-navigationcrashes the main process (exit 133, 3/3 runs). Dropping the redirect-path write entirely leavesnavigator.userAgentdisagreeing with the header-level Firefox switch, which is the mismatch #12884 exists to remove.Linked Issue
Fixes #15216
Visual Proof
Same machine, same profile state,
https://accounts.google.com/opened in an embedded browser tab:navigator.userAgentdata:text/html,— blank, no error surfaced…Chrome/150.0.7871.47 Electron/43.1.0…https://accounts.google.com/v3/signin/identifier?continue=…Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0https://mail.google.com/(non-auth host redirecting into one) behaves the same way: blank before, commits ataccounts.google.com/v3/signin/identifier?continue=https://mail.google.com/mail/u/0/&…after, on the Firefox auth UA.There is no UI surface of its own here — the visible change is that the page loads at all.
Testing
Final merge base:
f8e728bb8b87c0375b320fcd31316996f73e3d88Manual, macOS, on a dev build of this branch against installed 1.4.184 as the before-arm — the table above. Reproduction that motivated it:
https://gitlab.com/users/sign_in→ click Google → nothing happens on 1.4.184, while the GitHub button on the same page (same<form class="js-omniauth-form" method="post">markup, non-Google redirect target) navigates correctly.Automated
Three new cases in
browser-manager-auth-user-agent.test.ts:setUserAgent, and leaving the host afterwards reads the override rather than the stalegetUserAgent()WebContentswriteTwo cases in
browser-manager-viewport-override.test.tsasserted the cancelling write and were updated to the CDP contract.Full
src/main/browser/suite is unchanged against this merge base: 18 pre-existing failures before and after (all inbrowser-cookie-*, unrelated), 570 → 573 passing (+3 new).Not tested on Linux, Windows, or SSH. The path is main-process Chromium behavior with no platform branch, and the embedded browser runs in the desktop process on every platform.
AI Disclosure
Investigated and written with Claude (Opus 5) via Claude Code. The Electron oracle, the before/after app runs, and the test results above were produced by running them, not inferred.