chore: remove deprecated extension APIs (#26696)
This commit is contained in:
parent
7d49ce898a
commit
19954126e0
8 changed files with 43 additions and 156 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue