mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
see if this helps websql failure
This commit is contained in:
@@ -1290,13 +1290,18 @@ describe('chromium features', () => {
|
||||
console.log('About to wait for w.webContents.executeJavaScript');
|
||||
await w.webContents.executeJavaScript(`
|
||||
new Promise((resolve, reject) => {
|
||||
const webview = new WebView();
|
||||
webview.setAttribute('src', '${origin}');
|
||||
webview.setAttribute('webpreferences', 'enableWebSQL=0,contextIsolation=no');
|
||||
webview.setAttribute('partition', '${sqlPartition}');
|
||||
webview.setAttribute('nodeIntegration', 'on');
|
||||
document.body.appendChild(webview);
|
||||
webview.addEventListener('dom-ready', () => resolve());
|
||||
try {
|
||||
const webview = new WebView();
|
||||
webview.addEventListener('dom-ready', () => resolve());
|
||||
webview.setAttribute('src', '${origin}');
|
||||
webview.setAttribute('webpreferences', 'enableWebSQL=0,contextIsolation=no');
|
||||
webview.setAttribute('partition', '${sqlPartition}');
|
||||
webview.setAttribute('nodeIntegration', 'on');
|
||||
document.body.appendChild(webview);
|
||||
} catch (ex) {
|
||||
console.log('Error executing javascript', ex);
|
||||
reject(ex)
|
||||
}
|
||||
});
|
||||
`);
|
||||
console.log('About to wait for second web-sql-response');
|
||||
|
||||
Reference in New Issue
Block a user