mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add failing spec for sandboxed window.open
This commit is contained in:
@@ -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())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user