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
Resolve the skipWaiting() promise after activation completes.
The Activate algorithm's final step was to run Update Worker State
to make the worker `activated`. However Update Worker State
just queues a task to do so. So the task would run after
skipWaiting() resolved its promise, which wasn't the intent of
the spec.
Fixesw3c#1187.
1. Run the [=Update Worker State=] algorithm passing |registration|'s [=active worker=] and *redundant* as the arguments.
2579
2579
1. Run the <a>Update Registration State</a> algorithm passing |registration|, "<code>active</code>" and |registration|'s <a>waiting worker</a> as the arguments.
2580
2580
1. Run the <a>Update Registration State</a> algorithm passing |registration|, "<code>waiting</code>" and null as the arguments.
2581
-
1. Run the <a>Update Worker State</a> algorithm passing |registration|'s <a>active worker</a> and *activating* as the arguments.
2581
+
1. Run the [=Update Worker State=] algorithm passing |registration|'s <a>active worker</a> and *activating* as the arguments.
2582
2582
2583
2583
Note: Once an active worker is activating, neither a runtime script error nor a force termination of the active worker prevents the active worker from getting activated.
1. <span id="activate-settle-step">*WaitForAsynchronousExtensions*: Wait, [=in parallel=], until |e|'s [=ExtendableEvent/pending promises count=] is zero.</span>
2605
2605
1. Wait for |task| to have executed or been discarded, or the script to have been aborted by the <a lt="terminate service worker">termination</a> of |activeWorker|.
2606
2606
1. Wait for the step labeled *WaitForAsynchronousExtensions* to complete.
2607
-
1. Run the <a>Update Worker State</a> algorithm passing |registration|'s <a>active worker</a> and *activated* as the arguments.
2607
+
1. Run the [=Update Worker State=] algorithm passing |registration|'s <a>active worker</a> and *activated* as the arguments.
2608
+
1. Wait for all the tasks queued by [=Update Worker State=] invoked in this algorithm to have executed.
0 commit comments