Skip to content

Commit

Permalink
fix: do not allow child windows to specify their own preload script (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Apr 22, 2020
1 parent 3909001 commit fd529ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/guest-window-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd529ac

Please sign in to comment.