electron/spec-main/fixtures/crash-cases/webview-attach-destroyed/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
309 B
JavaScript
Raw Normal View History

const { app, BrowserWindow } = require('electron');
app.whenReady().then(() => {
const w = new BrowserWindow({ show: false, webPreferences: { webviewTag: true } });
w.loadURL('data:text/html,<webview src="data:text/html,hi"></webview>');
app.on('web-contents-created', () => {
w.close();
});
});