Repository navigation
Description
Operating system
macOS
Orca version
1.4.114
Details
Short summary:
OAuth sign-in flows that rely on window.open() popups (Google, GitHub, etc.) fail inside Orca's embedded browser tab. The popup either silently does nothing, gets rerouted into a normal Orca tab with no window.opener link, or falls through to the system browser depending on the target URL — none of which satisfy an OAuth provider expecting a real popup with opener/postMessage back-channel to the parent page.
What happened?
BrowserManager.attachGuestPolicies (src/main/browser/browser-manager.ts:578-613) installs a setWindowOpenHandler that unconditionally returns { action: 'deny' }. The handler's own comment acknowledges the gap:
// Why: popup-capable guests are required for OAuth and target=_blank
// flows, but Orca still does not host child windows itself. For normal
// web URLs, route the request into Orca's own browser-tab model first so
// the user stays in the IDE. Only fall back to the system browser when
// Orca cannot safely host the destination or when the guest is not yet
// associated with a trusted browser tab/renderer.Because no real child BrowserWindow/WebContents is ever created, window.opener is null in whatever surface the URL lands on (Orca tab or system browser), and postMessage between the OAuth popup and its opener never happens. Any OAuth/OIDC implementation that depends on popup-window semantics (rather than a full top-level redirect flow) breaks or hangs with no visible error.
How can we reproduce it?
- Open a site inside Orca's embedded browser (
orca tab create --url ...or the in-app browser pane) that authenticates via awindow.open()-based OAuth popup (e.g. a Google/GitHub "Sign in" button implemented with the popup flow rather than a full redirect). - Click the sign-in button.
- Observe: no popup appears with a live session back-channel to the opener; the flow either silently no-ops, opens a detached Orca tab that never notifies the opener, or is punted to the system browser and never returns control to the embedded page.
Anything else that might help:
Prior art from a sibling project (cmux, manaflow-ai/cmux#742) hit the identical failure mode — popups rerouted into tabs with no opener linkage, breaking OAuth/OIDC — and fixed it by returning a live WKWebView from WKUIDelegate.createWebViewWith instead of denying/rerouting the request. Orca is Electron-based, so the equivalent fix is returning { action: 'allow' } (optionally with overrideBrowserWindowOptions) from setWindowOpenHandler for popups that pass the existing URL/domain checks, letting Chromium's built-in popup machinery (not custom code) provide window.opener, postMessage, and window.close() semantics. Scope beyond the handler itself: applying the same navigation guard / anti-detection injection (injectAntiDetection) to the resulting popup WebContents, and deciding how/where the popup surfaces in Orca's worktree/tab UI and gets torn down.
Separately, some providers (Google) additionally reject OAuth from embedded/automated browser contexts outright (disallowed_useragent) regardless of popup support — that's outside what a popup fix alone can solve, but real popup support is the prerequisite for flows that don't hit that block.
Activity
Jinwoo-H commentedon Jul 10, 2026
will be in next release, usually within 24 hours
Finndersen commentedon Oct 5, 2026
This is still an issue for me for Okta Verifiy