You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure there's a material bug here, but it might be cleaner to explicitly deal with it. Consider the sequence:
Register a worker while there's an active worker with a controllee.
The worker installs and reaches Install step "Wait until no service worker client is using registration"
The worker calls skipWaiting(). skipWaiting invokes the Activate algorithm.
Now the worker is activated but still waiting in Install. When it's done waiting, it will invoke the Activate algorithm again. Probably skipWaiting() should abort that waiting step... though I guess there is no harm in re-entering Activate.
The text was updated successfully, but these errors were encountered:
I overlooked step 7.7: "Run the Update State algorithm passing registration's waiting worker and installed as the arguments."
If one cannot get to the waiting step without being installed then I see how this fits together, but even if harmless it seems a bit odd to have an algorithm stuck waiting.
This was inspired by a question on Blink's intent to ship thread for skipWaiting: https://groups.google.com/a/chromium.org/d/msg/blink-dev/IEMjiDBuMRk/-Ok7wd_Xu7QJ
I'm not sure there's a material bug here, but it might be cleaner to explicitly deal with it. Consider the sequence:
Now the worker is activated but still waiting in Install. When it's done waiting, it will invoke the Activate algorithm again. Probably skipWaiting() should abort that waiting step... though I guess there is no harm in re-entering Activate.
The text was updated successfully, but these errors were encountered: