fix: crash when clicking links with target=_blank from webview (#29874)
This commit is contained in:
parent
da9261497e
commit
522b19e2d8
3 changed files with 31 additions and 7 deletions
|
@ -488,6 +488,15 @@ describe('<webview> tag', function () {
|
|||
|
||||
await webContentsCreated;
|
||||
});
|
||||
|
||||
it('does not crash when creating window with noopener', async () => {
|
||||
loadWebView(w.webContents, {
|
||||
allowpopups: 'on',
|
||||
webpreferences: 'nativeWindowOpen=1',
|
||||
src: `file://${path.join(fixtures, 'api', 'native-window-open-noopener.html')}`
|
||||
});
|
||||
await emittedOnce(app, 'browser-window-created');
|
||||
});
|
||||
});
|
||||
|
||||
describe('webpreferences attribute', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue