chore: remove deprecated extension APIs (#26696)

This commit is contained in:
Milan Burda 2020-11-30 23:40:56 +01:00 committed by GitHub
parent 7d49ce898a
commit 19954126e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 43 additions and 156 deletions

View file

@ -181,10 +181,10 @@ describe('<webview> tag', function () {
nodeIntegration: true
}
});
BrowserWindow.removeDevToolsExtension('foo');
w.webContents.session.removeExtension('foo');
const extensionPath = path.join(__dirname, 'fixtures', 'devtools-extensions', 'foo');
await BrowserWindow.addDevToolsExtension(extensionPath);
await w.webContents.session.loadExtension(extensionPath);
w.loadFile(path.join(__dirname, 'fixtures', 'pages', 'webview-devtools.html'));
loadWebView(w.webContents, {