This reverts commit 8f35198bfb
.
This commit is contained in:
parent
46c2953edb
commit
57d2ae1aec
10 changed files with 196 additions and 339 deletions
11
spec/fixtures/module/preload-sandbox.js
vendored
11
spec/fixtures/module/preload-sandbox.js
vendored
|
@ -22,16 +22,7 @@
|
|||
}
|
||||
} else if (location.href !== 'about:blank') {
|
||||
addEventListener('DOMContentLoaded', () => {
|
||||
ipcRenderer.on('touch-the-opener', () => {
|
||||
let errorMessage = null
|
||||
try {
|
||||
const openerDoc = opener.document // eslint-disable-line no-unused-vars
|
||||
} catch (error) {
|
||||
errorMessage = error.message
|
||||
}
|
||||
ipcRenderer.send('answer', errorMessage)
|
||||
})
|
||||
ipcRenderer.send('child-loaded', window.opener == null, document.body.innerHTML, location.href)
|
||||
})
|
||||
}, false)
|
||||
}
|
||||
})()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue