Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: re-enable shared worker webview test #34338

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

codebytere
Copy link
Member

Description of Change

The crash no longer occurs locally and it passes as soon as contextIsolation=no is set as an attribute.

Checklist

Release Notes

Notes: none.

Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, very likely addressed with PlzSharedWorker refactor in upstream

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');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good opportunity to refactor the test to work with context isolation https://github.com/electron/electron/blob/main/spec/fixtures/pages/shared_worker.html :)

@zcbenz zcbenz force-pushed the re-enable-shared-worker-test branch from 97f0a73 to ae401ce Compare June 2, 2022 00:25
@jkleinsc jkleinsc merged commit eb26f99 into main Jun 2, 2022
@jkleinsc jkleinsc deleted the re-enable-shared-worker-test branch June 2, 2022 21:27
@release-clerk
Copy link

release-clerk bot commented Jun 2, 2022

No Release Notes

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants