Skip to content

Commit fd529ac

Browse files
fix: do not allow child windows to specify their own preload script (#23229)
1 parent 3909001 commit fd529ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browser/guest-window-manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ ipcMainInternal.on('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', (event, url, fra
195195
const options = {};
196196

197197
const ints = ['x', 'y', 'width', 'height', 'minWidth', 'maxWidth', 'minHeight', 'maxHeight', 'zoomFactor'];
198-
const webPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'preload', 'javascript', 'contextIsolation', 'webviewTag'];
198+
const webPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'javascript', 'contextIsolation', 'webviewTag'];
199199
const disposition = 'new-window';
200200

201201
// Used to store additional features

0 commit comments

Comments
 (0)