Browse Source

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

Samuel Attard 5 years ago
parent
commit
fd529ac30a
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

@@ -195,7 +195,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