Implement window overrides in main context
This commit is contained in:
parent
95054f443f
commit
3f7b3c4bd7
13 changed files with 357 additions and 289 deletions
|
@ -448,13 +448,15 @@ describe('<webview> tag', function () {
|
|||
typeofProcess: 'undefined',
|
||||
typeofArrayPush: 'number',
|
||||
typeofFunctionApply: 'boolean',
|
||||
typeofPreloadExecuteJavaScriptProperty: 'number'
|
||||
typeofPreloadExecuteJavaScriptProperty: 'number',
|
||||
typeofOpenedWindow: 'object'
|
||||
}
|
||||
})
|
||||
done()
|
||||
})
|
||||
|
||||
webview.setAttribute('preload', path.join(fixtures, 'api', 'isolated-preload.js'))
|
||||
webview.setAttribute('allowpopups', 'yes')
|
||||
webview.setAttribute('webpreferences', 'contextIsolation=yes')
|
||||
webview.src = 'file://' + fixtures + '/api/isolated.html'
|
||||
document.body.appendChild(webview)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue