From 208be2a54206267182330fd59616631390b0dc50 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 10 Jul 2017 17:12:40 -0700 Subject: [PATCH] Set preload script on opened windows --- spec/api-browser-window-spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 09e13b914c0..d378850d88e 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -1005,6 +1005,7 @@ describe('BrowserWindow module', function () { preload: preload } }) + ipcRenderer.send('set-web-preferences-on-next-new-window', w.webContents.id, 'preload', preload) let htmlPath = path.join(fixtures, 'api', 'sandbox.html?window-open') const pageUrl = 'file://' + htmlPath w.loadURL(pageUrl) @@ -1035,6 +1036,7 @@ describe('BrowserWindow module', function () { preload: preload } }) + ipcRenderer.send('set-web-preferences-on-next-new-window', w.webContents.id, 'preload', preload) let htmlPath = path.join(fixtures, 'api', 'sandbox.html?window-open-external') const pageUrl = 'file://' + htmlPath let popupWindow