mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Adjust src from will-attach-webview
This commit is contained in:
@@ -255,7 +255,8 @@ ipcMain.on('prevent-next-will-attach-webview', (event) => {
|
||||
})
|
||||
|
||||
ipcMain.on('disable-node-on-next-will-attach-webview', (event, id) => {
|
||||
event.sender.once('will-attach-webview', (event, guest, webPreferences) => {
|
||||
event.sender.once('will-attach-webview', (event, guest, webPreferences, params) => {
|
||||
params.src = `file://${path.join(__dirname, '..', 'fixtures', 'pages', 'c.html')}`
|
||||
webPreferences.nodeIntegration = false
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1108,7 +1108,7 @@ describe('<webview> tag', function () {
|
||||
done()
|
||||
})
|
||||
webview.setAttribute('nodeintegration', 'yes')
|
||||
webview.src = 'file://' + fixtures + '/pages/c.html'
|
||||
webview.src = 'file://' + fixtures + '/pages/a.html'
|
||||
document.body.appendChild(webview)
|
||||
})
|
||||
|
||||
@@ -1122,9 +1122,6 @@ describe('<webview> tag', function () {
|
||||
})
|
||||
})
|
||||
|
||||
it('emits a new-webview event when first attached that ', () => {
|
||||
})
|
||||
|
||||
it('loads devtools extensions registered on the parent window', function (done) {
|
||||
w = new BrowserWindow({
|
||||
show: false
|
||||
|
||||
Reference in New Issue
Block a user