Add spec for reloading opened window cross-origin
This commit is contained in:
parent
0c8f773dec
commit
3925bfde8e
5 changed files with 87 additions and 0 deletions
8
spec/fixtures/api/window-open-preload.js
vendored
Normal file
8
spec/fixtures/api/window-open-preload.js
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
const {ipcRenderer} = require('electron')
|
||||
|
||||
setImmediate(function () {
|
||||
if (window.location.toString() === 'bar://page') {
|
||||
ipcRenderer.send('answer', process.argv, typeof global.process)
|
||||
window.close()
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue