You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
window.open with nativeWindowOpen option always enables nodeIntegration even set it to false #15666
This is a side effect since the introduction of the nativeWindowOpen option, and unfortunately we don't have a way to fix it because in Chromium it assumes native child windows must share exactly same web preferences with the parent window.
I'm going to make this behavior explicitly documented and close this as won't fix.
Since 5.x, child windows with nativeWindowOpen will always have node integration disabled.
@zcbenz What is "5.x" in your comment? Are you saying that Electron 5.0+ will have node integration disabled if nativeWindowOpen is used, but for right now, it will inherit the parent view's nodeintegration?
Activity
zcbenz commentedon Nov 16, 2018
This is a side effect since the introduction of the
nativeWindowOpenoption, and unfortunately we don't have a way to fix it because in Chromium it assumes native child windows must share exactly same web preferences with the parent window.I'm going to make this behavior explicitly documented and close this as won't fix.
Since 5.x, child windows with
nativeWindowOpenwill always have node integration disabled.jkleinsc commentedon Nov 19, 2018
Closed via #15751
pushkin- commentedon Dec 3, 2018
@zcbenz What is "5.x" in your comment? Are you saying that Electron 5.0+ will have node integration disabled if
nativeWindowOpenis used, but for right now, it will inherit the parent view's nodeintegration?mehrshadFarzaneh commentedon Sep 24, 2021
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
nativeWindowOpen:true
}