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.opener is null in window opened by webview #5953

Closed
ddxdental opened this Issue Jun 9, 2016 · 0 comments

Comments

Projects
None yet
3 participants
@ddxdental

ddxdental commented Jun 9, 2016

Hi There,

Simple webview created as such:

<webview id="appFrame" src="https://www.remote.com/" plugins allowpopups preload="vendor/ddx/preload.js" autosize="on" minwidth="1024" minheight="768" partition="persist:ddx"></webview>

(preload.js sets ipcRenderer)

remote.com makes a call to var win = window.open(). The window is opened as expected, and the reference to the opened window returned win is an instance of BrowserWindowProxy. Calls to the win instance of BrowserWindowProxy API work without issue.

However, the resultant window has window.opener set to null breaking any IPC communication between child to parent.

  • Electron version: 1.2.1
  • Operating system: Windows 10

@zcbenz zcbenz changed the title from window.opener null to window.opener is null in window opened by webview Jun 9, 2016

@kevinsawicki kevinsawicki self-assigned this Jun 9, 2016

@zcbenz zcbenz closed this in #5967 Jun 10, 2016

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