mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: remove nativeWindowOpen option (#29405)
Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
7
spec/fixtures/api/new-window-preload.js
vendored
7
spec/fixtures/api/new-window-preload.js
vendored
@@ -1,7 +0,0 @@
|
||||
const { ipcRenderer, webFrame } = require('electron');
|
||||
|
||||
ipcRenderer.send('answer', {
|
||||
nativeWindowOpen: webFrame.getWebPreference('nativeWindowOpen'),
|
||||
argv: process.argv
|
||||
});
|
||||
window.close();
|
||||
14
spec/fixtures/api/window-open-preload.js
vendored
14
spec/fixtures/api/window-open-preload.js
vendored
@@ -1,14 +0,0 @@
|
||||
const { ipcRenderer, webFrame } = require('electron');
|
||||
|
||||
setImmediate(function () {
|
||||
if (window.location.toString() === 'bar://page/') {
|
||||
const windowOpenerIsNull = window.opener == null;
|
||||
ipcRenderer.send('answer', {
|
||||
nativeWindowOpen: webFrame.getWebPreference('nativeWindowOpen'),
|
||||
nodeIntegration: webFrame.getWebPreference('nodeIntegration'),
|
||||
typeofProcess: typeof global.process,
|
||||
windowOpenerIsNull
|
||||
});
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user