Preflight Checklist
Electron Version
16.0.1
What operating system are you using?
macOS
Operating System Version
macOS Catalina 10.15.7
What arch are you using?
x64
Last Known Working Electron version
N/A
Expected Behavior
I have a BrowserWindow with nativeWindowOpen enabled and nodeIntegration enabled. I want to open a popup using window.open('popup.html', '', 'nodeIntegration=no');, to have nodeIntegration disabled. This is documented here:
|
A subset of `WebPreferences` can be set directly, |
|
unnested, from the features string: `zoomFactor`, `nodeIntegration`, `preload`, |
|
`javascript`, `contextIsolation`, and `webviewTag`. |
Actual Behavior
The popup window has nodeIntegration enabled incorrectly. However, when the parent window has nativeWindowOpen disabled, it works.
Testcase Gist URL
No response
Additional Information
native-window-open-node-integration.zip
Test passed: Electron exited with code 0.
Test failed: Electron exited with code 1.
This issue is blocking #29405
Preflight Checklist
Electron Version
16.0.1
What operating system are you using?
macOS
Operating System Version
macOS Catalina 10.15.7
What arch are you using?
x64
Last Known Working Electron version
N/A
Expected Behavior
I have a
BrowserWindowwithnativeWindowOpenenabled andnodeIntegrationenabled. I want to open a popup usingwindow.open('popup.html', '', 'nodeIntegration=no');, to havenodeIntegrationdisabled. This is documented here:electron/docs/api/window-open.md
Lines 45 to 47 in 0865267
Actual Behavior
The popup window has
nodeIntegrationenabled incorrectly. However, when the parent window hasnativeWindowOpendisabled, it works.Testcase Gist URL
No response
Additional Information
native-window-open-node-integration.zip
Test passed: Electron exited with code 0.
Test failed: Electron exited with code 1.
This issue is blocking #29405