Enable context isolation on child windows
This commit is contained in:
parent
eef72647b4
commit
95054f443f
2 changed files with 14 additions and 0 deletions
|
@ -1903,6 +1903,15 @@ describe('BrowserWindow module', function () {
|
|||
})
|
||||
w.loadURL('file://' + fixtures + '/api/isolated.html')
|
||||
})
|
||||
|
||||
it('enables context isolation on child windows', function (done) {
|
||||
app.once('browser-window-created', function (event, window) {
|
||||
assert.equal(window.webContents.getWebPreferences().contextIsolation, true)
|
||||
done()
|
||||
})
|
||||
|
||||
w.loadURL('file://' + fixtures + '/pages/window-open.html')
|
||||
})
|
||||
})
|
||||
|
||||
describe('offscreen rendering', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue