fix: run subframe preload bundles in isolated context (#17165)
* fix: run subframe preload bundles in isolated context * test subframe contextIsolation when disabled
This commit is contained in:
parent
5581990d78
commit
8ec304f32f
3 changed files with 56 additions and 12 deletions
2
spec/fixtures/sub-frames/preload.js
vendored
2
spec/fixtures/sub-frames/preload.js
vendored
|
@ -1,5 +1,7 @@
|
|||
const { ipcRenderer, webFrame } = require('electron')
|
||||
|
||||
window.isolatedGlobal = true
|
||||
|
||||
ipcRenderer.send('preload-ran', window.location.href, webFrame.routingId)
|
||||
|
||||
ipcRenderer.on('preload-ping', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue