revert: "fix: window.open site instance should belong to same browsing instance (#15216)" (#15757)

This reverts commit 8f35198bfb.
This commit is contained in:
Pedro Pontes 2018-11-20 21:28:26 +01:00 committed by Alexey Kuzmin
parent 46c2953edb
commit 57d2ae1aec
10 changed files with 196 additions and 339 deletions

View file

@ -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)
}
})()