Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.open should respect window.opener node-integration property #2100

Closed
lele85 opened this issue Jul 2, 2015 · 2 comments
Closed

window.open should respect window.opener node-integration property #2100

lele85 opened this issue Jul 2, 2015 · 2 comments
Assignees

Comments

@lele85
Copy link

lele85 commented Jul 2, 2015

I'm building an app that has an initial login/connect step in a classic website to retrive an oauth2 token. In order to work with classic web content login BrowserWindow is opened with:

"node-integration": false

All is working correctly except from Facebook Connect. Facebook redefines his own require on the website, disabling node-integration prevent conflicts but the setting is not passed down to opened window.

Facebook js SDK internally calls a window.open and electron instantiate that window with node integration enabled no matter what.

I think that the expected behavior is that opened window inherits opener window node integration property.

Any idea for a solution or a workaround is highly appreciated.

@zcbenz
Copy link
Member

zcbenz commented Jul 6, 2015

Sounds reasonable to me.

@zcbenz zcbenz self-assigned this Jul 6, 2015
@lele85
Copy link
Author

lele85 commented Jul 6, 2015

Digging deeper into the issue i discovered that this will only fix partially the issue because FB sdk uses window.opener shared state to manage communication between opened and opener window. It will be useful for sure in other scenarios. I'm watching #1865. Thank you for the effort @zcbenz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants