Skip to content

Commit

Permalink
test: re-enable shared worker webview test (#34338)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 2, 2022
1 parent d13c879 commit eb26f99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/chromium-spec.js
Expand Up @@ -281,15 +281,14 @@ describe('chromium feature', () => {
expect(event.data).to.equal('undefined undefined undefined undefined');
});

// FIXME: disabled during chromium update due to crash in content::WorkerScriptFetchInitiator::CreateScriptLoaderOnIO
xit('has node integration with nodeIntegrationInWorker', async () => {
it('has node integration with nodeIntegrationInWorker', async () => {
const webview = new WebView();
webview.addEventListener('console-message', (e) => {
console.log(e);
});
const eventPromise = waitForEvent(webview, 'ipc-message');
webview.src = `file://${fixtures}/pages/shared_worker.html`;
webview.setAttribute('webpreferences', 'nodeIntegration, nodeIntegrationInWorker');
webview.setAttribute('webpreferences', 'nodeIntegration, nodeIntegrationInWorker, contextIsolation=no');
document.body.appendChild(webview);
const event = await eventPromise;
webview.remove();
Expand Down

0 comments on commit eb26f99

Please sign in to comment.