Add failing spec for sandboxed window.open
This commit is contained in:
parent
070bbcfc3d
commit
c5da330cdf
2 changed files with 24 additions and 0 deletions
|
@ -245,3 +245,8 @@ ipcMain.on('create-window-with-options-cycle', (event) => {
|
|||
const window = new BrowserWindow({show: false, foo: foo})
|
||||
event.returnValue = window.id
|
||||
})
|
||||
|
||||
|
||||
ipcMain.on('prevent-next-new-window', (event, id) => {
|
||||
webContents.fromId(id).once('new-window', event => event.preventDefault())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue