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

HTML: correct worker URL encoding tests #41783

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented Sep 3, 2023

SharedWorker is only exposed on Window, not in any worker global.

The SharedWorker importScripts() took me a while to debug, but ultimately the problem was that the variable was declared in a function scope and importScripts would attempt to override it in the global scope. As such, the fix is declaring the variable a little earlier on, matching how it's done for Worker importScripts().

Helps with #4934.

SharedWorker is only exposed on Window, not in any worker global.

The SharedWorker importScripts() took me a while to debug, but ultimately the problem was that the variable was declared in a function scope and importScripts would attempt to override it in the global scope. As such, the fix is declaring the variable a little earlier on, matching how it's done for Worker importScripts().

Helps with #4934.
@annevk annevk merged commit b300c1b into master Sep 4, 2023
20 checks passed
@annevk annevk deleted the annevk/worker-url-encoding branch September 4, 2023 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants