chore: refactor context isolation spec (#14394)
* spec: refactor BrowserWindow module contextIsolation option * spec: check for serialzation in isolated renderers separately
This commit is contained in:
parent
3a79eacb6f
commit
32158ca5dd
5 changed files with 63 additions and 59 deletions
6
spec/fixtures/api/isolated-fetch-preload.js
vendored
Normal file
6
spec/fixtures/api/isolated-fetch-preload.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
const {ipcRenderer} = require('electron')
|
||||
|
||||
// Ensure fetch works from isolated world origin
|
||||
fetch('https://localhost:1234').catch(err => {
|
||||
ipcRenderer.send('isolated-fetch-error', err.message)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue