-
Notifications
You must be signed in to change notification settings - Fork 313
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
Clients.claim() does not deal with a client already controlled by another registration #682
Comments
In the example, the registration for '/a', for '/a/b' and for '/a/b/c' are three different registrations. And at step 4, the service worker in the registration for '/a/b/c', as it's been an active worker already, immediately becomes the controller for d.html which was being controlled by the registration for '/a' by this time. I don't see a reason Handle Service Worker Client Unload should be run here. Please let me know if I'm misunderstanding your question. |
In @nikhilm's example, imagine the registration with scope
This means the registration with scope |
Gotcha! Thanks! |
Consider a page located at /a/b/c/d.html
At this point, we should first run Handle Service Worker Client Unload steps with the client, then change the client's active worker. The former is not being done right now.
The text was updated successfully, but these errors were encountered: