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
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.
hugomano
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
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.
Preflight Checklist
Issue Details
5.0.0
macOS 10.14.4
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 thewindow.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.To Reproduce
window.open('https://google.com')
from the web view dev toolswindow.opener
is not nullwindow.location = 'https://github.com'
; thewindow.opener
is nullScreenshots
Additional Information
Similar issues have been reported: #17869,
#15821, #8100
Also preloads doesn't load in the same origin context for the opened window.
Seems linked to #17989:
myapp.com
) openauth.google.com
,window.opener
is null and preloads are loadedmyapp.com
) openauth.myapp.com
,window.opener
is set but preloads are not loadedMore details here
History: #11471 (comment)
The text was updated successfully, but these errors were encountered: