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:
Robo 2018-09-01 02:21:29 +05:30 committed by Samuel Attard
parent 3a79eacb6f
commit 32158ca5dd
5 changed files with 63 additions and 59 deletions

View 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)
})