@@ -494,6 +494,33 @@ <h2>
494
494
When called, this method executes the following steps:
495
495
</ p >
496
496
< ol >
497
+ < li > Let < var > registration</ var > be the < a > PaymentInstrument</ a > 's
498
+ associated < a > service worker registration</ a > .
499
+ </ li >
500
+ < li > If < var > registration</ var > has no < a > active worker</ a > , run the
501
+ following substeps:
502
+ < ol >
503
+ < li > If < var > registration</ var > has no < a > installing worker</ a >
504
+ and no < a > waiting worker</ a > , then reject a < a > Promise</ a > with
505
+ a < a > DOMException</ a > whose name is
506
+ "< code > < a > InvalidStateError</ a > </ code > " and terminate these
507
+ steps.
508
+ </ li >
509
+ < li > Wait for the < a > installing worker</ a > or < a > waiting
510
+ worker</ a > of < var > registration</ var > to become its < a > active
511
+ worker</ a > .
512
+ </ li >
513
+ < li > If < var > registration</ var > fails to activate either worker,
514
+ reject < var > promise</ var > with a
515
+ < code > < a > DOMException</ a > </ code > whose name is
516
+ "< code > < a > InvalidStateError</ a > </ code > " and terminate these
517
+ steps.
518
+ </ li >
519
+ < li > Once < var > registration</ var > has an < a > active worker</ a > ,
520
+ proceed with the steps below.
521
+ </ li >
522
+ </ ol >
523
+ </ li >
497
524
< li > Let < var > permission</ var > be the result of running
498
525
< a data-cite ="!permissions#dfn-retrieve-the-permission-state "> retrieving
499
526
the permission state</ a > of the permission associated with
@@ -1993,8 +2020,10 @@ <h2>
1993
2020
< dd >
1994
2021
The terms < dfn data-cite =
1995
2022
"!SERVICE-WORKERS#service-worker-concept "> service worker</ dfn > ,
1996
- < dfn data-cite ="!SERVICE-WORKERS#dfn-service-worker-client "> service
1997
- worker client</ dfn > , < code > < dfn data-cite =
2023
+ < dfn > service worker registration</ dfn > , < dfn > active worker</ dfn > ,
2024
+ < dfn > installing worker</ dfn > , < dfn data-cite =
2025
+ "!SERVICE-WORKERS#dfn-service-worker-client "> service worker
2026
+ client</ dfn > , < code > < dfn data-cite =
1998
2027
"!SERVICE-WORKERS#service-worker-registration-concept "> ServiceWorkerRegistration</ dfn > </ code > ,
1999
2028
< code > < dfn data-cite =
2000
2029
"!SERVICE-WORKERS#service-worker-global-scope "> ServiceWorkerGlobalScope</ dfn > </ code > ,
0 commit comments