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

getPorts() allowed to use check doesn't work inside workers #116

Open
domenic opened this issue Feb 11, 2021 · 1 comment
Open

getPorts() allowed to use check doesn't work inside workers #116

domenic opened this issue Feb 11, 2021 · 1 comment

Comments

@domenic
Copy link
Collaborator

domenic commented Feb 11, 2021

If this's relevant global object's associated Document is not allowed to use the policy-controlled feature named "serial", reject promise with a "SecurityError" DOMException and return promise.

This's relevant global object does not have an associated Document when the method is called inside a worker.

Probably you want to check this's relevant global object's owner set[0]'s associated Document? If so, that's kind of awkward; maybe HTML should make this easier?

@domenic
Copy link
Collaborator Author

domenic commented Feb 11, 2021

Bleh, it requires even more contortions to deal with nested workers: https://wicg.github.io/page-lifecycle/#dedicatedworkerglobalscope-owning-document

I'll at least try to upstream that from HTML...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant