-
Notifications
You must be signed in to change notification settings - Fork 17.1k
Unable to use window.open in Electron@1.4.3 #7519
Copy link
Copy link
Closed
Description
- Electron version: 1.4.3
- Operating system: Linux Mint 17.1
We recently received an error report of karma-electron no longer working with Electron@1.4.3 (twolfson/karma-electron#16). After some debugging, we determined this is being caused by breaking functionality window.open. We have set up a minimal gist to reproduce the issue:
https://gist.github.com/twolfson/990cef4aa6dfca94282cf012a590a1e5
The stack trace we are getting is:
/home/todd/github/gist-electron-cannot-set-openerid/index.js:4
throw err;
^
TypeError: Cannot set property 'openerId' of undefined
at mergeBrowserWindowOptions (/home/todd/github/gist-electron-cannot-set-openerid/node_modules/electron/dist/resources/electron.asar/browser/guest-window-manager.js:44:35)
at EventEmitter.<anonymous> (/home/todd/github/gist-electron-cannot-set-openerid/node_modules/electron/dist/resources/electron.asar/browser/guest-window-manager.js:144:13)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
at WebContents.<anonymous> (/home/todd/github/gist-electron-cannot-set-openerid/node_modules/electron/dist/resources/electron.asar/browser/api/web-contents.js:219:13)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:191:7)
which is likely caused by the changes to browser/guest-window-manager.js.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels