mirror of
https://github.com/open-webui/desktop.git
synced 2026-11-05 01:27:46 +00:00
[PR #218] fix: allow OAuth popups to open inside Electron webview #230
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/desktop#230
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/desktop/pull/218
Author: @pascal-sidlee
Created: 5/26/2026
Status: 🔄 Open
Base:
main← Head:fix/oauth-popup-blocked-in-webview📝 Commits (1)
169b98bfix: allow OAuth popups to open inside Electron webview📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
src/main/index.ts(+13 -0)📄 Description
Description
OAuth popups (Google Drive, Google Sign-In, etc.) are blocked when triggered
from a webview because
setWindowOpenHandlerreturns{ action: 'deny' }forall popups. The popup opens in the system browser instead, which breaks the
OAuth handshake, the opener page can't receive the postMessage callback from
an external browser window.
Fix: whitelist known OAuth provider hosts so their popups open as child windows
inside Electron, where the callback can complete normally. All other popups
continue to open in the system browser.
Related Issues
Closes #175
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.