Skip to content

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

Closed

Description

@lele85

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.

Activity

  1. zcbenz commented on Jul 6, 2015

    @zcbenz
    Contributor

    Sounds reasonable to me.

  2. self-assigned this
    on Jul 6, 2015
  3. lele85 commented on Jul 6, 2015

    @lele85
    Author

    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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions