Rename option to webviewTag and default to nodeIntegration value
This commit is contained in:
parent
837ea884de
commit
bde13353fb
6 changed files with 26 additions and 23 deletions
|
@ -54,13 +54,13 @@ describe('<webview> tag', function () {
|
|||
w.loadURL('file://' + fixtures + '/pages/webview-no-script.html')
|
||||
})
|
||||
|
||||
it('is enabled when override is set', function (done) {
|
||||
it('is enabled when the webviewTag option is enabled and the nodeIntegration option is disabled', function (done) {
|
||||
w = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
preload: path.join(fixtures, 'module', 'preload-webview.js'),
|
||||
overrideWebViewSecurity: true
|
||||
webviewTag: true
|
||||
}
|
||||
})
|
||||
ipcMain.once('webview', function (event, type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue