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

Note about a DedicatedWorkerGlobalScope's owner set seems under-explained #47

Open
kenchris opened this issue Oct 16, 2023 · 0 comments

Comments

@kenchris
Copy link

According to HTML you can create a dedicated worker inside a shared worker, thus, the owner

image

So yes, a ADedicatedWorkerGlobalScope's owner set will always have exactly one item, as the note states, but that owner might be a SharedWorkerGlobalScope that can have an owner set of multiple documents.

The algorithm for owning document will in that case return null: https://wicg.github.io/page-lifecycle/#worklets-workers

If that is the intention, I think the note should explain that better.

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