chore: make "nodeIntegration" and "webviewTag" default to false (#16235)
This commit is contained in:
parent
cdf4bfa68f
commit
fade3eb679
23 changed files with 261 additions and 140 deletions
|
@ -146,7 +146,12 @@ describe('webFrame module', function () {
|
|||
})
|
||||
|
||||
it('calls a spellcheck provider', async () => {
|
||||
w = new BrowserWindow({ show: false })
|
||||
w = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
await w.loadFile(path.join(fixtures, 'pages', 'webframe-spell-check.html'))
|
||||
w.focus()
|
||||
await w.webContents.executeJavaScript('document.querySelector("input").focus()', true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue