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
1. Let |runResult| be the result of running the [=Run Service Worker=] algorithm with |worker| and |forceBypassCache|.
2593
2593
1. If |runResult| is *failure* or an [=abrupt completion=], then:
2594
2594
1. Invoke [=Reject Job Promise=] with |job| and `TypeError`.
2595
-
1. If |newestWorker| is null, invoke[=Clear Registration=]algorithm passing |registration| as its argument.
2595
+
1. If |newestWorker| is null, then[=map/remove=][=scope to registration map=][|registration|'s [=service worker registration/scope url=], [[=URL serializer|serialized=]].
2596
2596
1. Invoke [=Finish Job=] with |job|.
2597
2597
1. Else, invoke [=Install=] algorithm with |job|, |worker|, and |registration| as its arguments.
1. Run the <a>Update Worker State</a> algorithm passing |registration|'s [=installing worker=] and "`redundant`" as the arguments.
2663
2663
1. Run the <a>Update Registration State</a> algorithm passing |registration|, "<code>installing</code>" and null as the arguments.
2664
-
1. If |newestWorker| is null, invoke <a>Clear Registration</a> algorithm passing |registration| as its argument.
2664
+
1. If |newestWorker| is null, then [=map/remove=][=scope to registration map=][|registration|'s [=service worker registration/scope url=], [[=URL serializer|serialized=]].
2665
2665
1. Invoke <a>Finish Job</a> with |job| and abort these steps.
2666
2666
1. Let |map| be |registration|'s [=installing worker=]'s [=script resource map=].
2667
2667
1. Let |usedSet| be |registration|'s [=installing worker=]'s [=set of used scripts=].
1. Let |runResult| be the result of running the [=Run Service Worker=] algorithm with |worker| and |forceBypassCache|.
2415
2415
1. If |runResult| is *failure* or an [=abrupt completion=], then:
2416
2416
1. Invoke [=Reject Job Promise=] with |job| and `TypeError`.
2417
-
1. If |newestWorker| is null, invoke[=Clear Registration=]algorithm passing |registration| as its argument.
2417
+
1. If |newestWorker| is null, then[=map/remove=][=scope to registration map=][|registration|'s [=service worker registration/scope url=], [[=URL serializer|serialized=]].
2418
2418
1. Invoke [=Finish Job=] with |job|.
2419
2419
1. Else, invoke [=Install=] algorithm with |job|, |worker|, and |registration| as its arguments.
1. Run the <a>Update Worker State</a> algorithm passing |registration|'s [=installing worker=] and "`redundant`" as the arguments.
2484
2484
1. Run the <a>Update Registration State</a> algorithm passing |registration|, "<code>installing</code>" and null as the arguments.
2485
-
1. If |newestWorker| is null, invoke <a>Clear Registration</a> algorithm passing |registration| as its argument.
2485
+
1. If |newestWorker| is null, then [=map/remove=][=scope to registration map=][|registration|'s [=service worker registration/scope url=], [[=URL serializer|serialized=]].
2486
2486
1. Invoke <a>Finish Job</a> with |job| and abort these steps.
2487
2487
1. If |registration|'s <a>waiting worker</a> is not null, then:
2488
2488
1. [=Terminate Service Worker|Terminate=] |registration|'s [=waiting worker=].
0 commit comments