Browse Source

fix: do not allow child windows to specify their own preload script (#23228)

Samuel Attard 5 years ago
parent
commit
dac2137420
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/guest-window-manager.js

+ 1 - 1
lib/browser/guest-window-manager.js

@@ -191,7 +191,7 @@ ipcMainInternal.on('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', (event, url, fra
   const options = {}
 
   const ints = ['x', 'y', 'width', 'height', 'minWidth', 'maxWidth', 'minHeight', 'maxHeight', 'zoomFactor']
-  const webPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'preload', 'javascript', 'contextIsolation', 'webviewTag']
+  const webPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'javascript', 'contextIsolation', 'webviewTag']
   const disposition = 'new-window'
 
   // Used to store additional features