You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
window.opener opened from webview is null after cross site navigation #18032
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
Electron Version: 5.0.0
Operating System: macOS 10.14.4
Last Known Working Electron version:: 4.0.4
Expected Behavior
Open a Window with domain A via window.open et navigate to domain B in the opened window should keep the window.opener reference.
At the business logic level, sign-in with Google Auth from a web frame doesn't work. The callback on final application domain can't post a message to the window opener.
Actual Behavior
The window.opener is null after cross-site navigation.
changed the title [-]`window.opener` opened from webview is null after cross site navigation[/-][+]window.opener opened from webview is null after cross site navigation[/+]on Apr 29, 2019
#15821 fixed this bug for sandboxed renderers. For non-sandboxed renderers, Node is enabled and the approach Electron uses to force it to be properly restarted upon navigation causes this problem.
While this is worked on, you can consider either sandboxing your renderer if at all possible or not using native window open to open the popup.
Activity
[-]`window.opener` opened from webview is null after cross site navigation[/-][+]window.opener opened from webview is null after cross site navigation[/+]alexstrat commentedon Apr 30, 2019
Relates to #15821 IMO
alexstrat commentedon May 6, 2019
Reproduction repository https://github.com/alexstrat/electron-bug-repro-cross-origin-opener
ppontes commentedon May 9, 2019
#15821 fixed this bug for sandboxed renderers. For non-sandboxed renderers, Node is enabled and the approach Electron uses to force it to be properly restarted upon navigation causes this problem.
While this is worked on, you can consider either sandboxing your renderer if at all possible or not using native window open to open the popup.