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
<dd>a new {{WindowClient}} object that represents |incumbentGlobal|'s [=relevant settings object=].</dd>
501
503
502
504
<dt>Otherwise</dt>
503
-
<dd>a new {{Client}} object that represents |incumbentGlobal|'s associated worker
504
-
</dd>
505
+
<dd>a new {{Client}} object that represents |incumbentGlobal|'s associated worker</dd>
506
+
</dl>
505
507
1. Let |origin| be the [=serialization of an origin|serialization=] of |incumbentSettings|'s [=environment settings object/origin=].
506
508
1. Let |destination| be the {{ServiceWorkerGlobalScope}} object associated with |serviceWorker|.
507
509
1. Let |deserializeRecord| be <a abstract-op>StructuredDeserializeWithTransfer</a>(|serializeWithTransferResult|, |destination|'s [=global object/Realm=]).
1. Let |newContext| be a new [=top-level browsing context=].
1456
1458
1. [=Queue a task=] to run the following steps on |newContext|'s {{Window}} object's [=environment settings object=]'s [=responsible event loop=] using the [=user interaction task source=]:
1457
-
1. *HandleNavigate*: [=Navigate=] |newContext| to |url| with [=exceptionsEnabled=] true, and [=historyHandling=] "<code>replace</code>".
1459
+
1. *HandleNavigate*: [=Navigate=] |newContext| to |url| with [=navigate/exceptionsEnabled=] true, and <i>[=navigate/historyHandling=]</i> "<code>replace</code>".
1458
1460
1. If the algorithm steps invoked in the step labeled *HandleNavigate* [=throws=] an exception, [=queue a task=] to reject |promise| with the exception, on |serviceWorkerEventLoop| using the [=DOM manipulation task source=], and abort these steps.
1459
1461
1. Let |frameType| be the result of running [=Get Frame Type=] with |newContext|.
1460
1462
1. Let |visibilityState| be |newContext|'s <a>active document</a>'s {{Document/visibilityState}} attribute value.
1. Invoke [=Batch Cache Operations=] with |operations|. If this [=throws=] an exception, set |errorData| to the exception.
2096
2099
1. [=Queue a task=], on |cacheJobPromise|'s [=relevant settings object=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to perform the following substeps:
2097
2100
1. If |errorData| is null, resolve |cacheJobPromise| with undefined.
2098
-
1. Else, reject |cacheJobPromise| with a [=exception/create|new=][=exception=] with |errorData| and a user agent-defined [=exception/message=], in |realm|.
2101
+
1. Else, reject |cacheJobPromise| with a [=exception/create|new=][=exception=] with |errorData|, in |realm|.
1. Invoke [=Batch Cache Operations=] with |operations|. If this [=throws=] an exception, set |errorData| to the exception.
2141
2144
1. [=Queue a task=], on |cacheJobPromise|'s [=relevant settings object=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to perform the following substeps:
2142
2145
1. If |errorData| is null, resolve |cacheJobPromise| with undefined.
2143
-
1. Else, reject |cacheJobPromise| with a [=exception/create|new=][=exception=] with |errorData| and a user agent-defined [=exception/message=], in |realm|.
2146
+
1. Else, reject |cacheJobPromise| with a [=exception/create|new=][=exception=] with |errorData|, in |realm|.
1. If |requestResponses| [=list/is not empty=], resolve |cacheJobPromise| with true.
2171
2174
1. Else, resolve |cacheJobPromise| with false.
2172
-
1. Else, reject |cacheJobPromise| with a [=exception/create|new=][=exception=] with |errorData| and a user agent-defined [=exception/message=], in |realm|.
2175
+
1. Else, reject |cacheJobPromise| with a [=exception/create|new=][=exception=] with |errorData|, in |realm|.
1. If |job|'s [=job/client=] is not null, [=queue a task=], on |job|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |job|'s [=job/job promise=] with a [=exception/create|new=][=exception=] with |errorData| and a user agent-defined [=exception/message=], in |job|'s [=job/client=]'s [=environment settings object/Realm=].
2647
+
1. If |job|'s [=job/client=] is not null, [=queue a task=], on |job|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |job|'s [=job/job promise=] with a [=exception/create|new=][=exception=] with |errorData|, in |job|'s [=job/client=]'s [=environment settings object/Realm=].
2645
2648
1. For each |equivalentJob| in |job|'s [=list of equivalent jobs=]:
2646
2649
1. If |equivalentJob|'s [=job/client=] is null, [=iteration/continue=].
2647
-
1. [=Queue a task=], on |equivalentJob|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |equivalentJob|'s [=job/job promise=] with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=exception/message=], in |equivalentJob|'s [=job/client=]'s [=environment settings object/Realm=].
2650
+
1. [=Queue a task=], on |equivalentJob|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |equivalentJob|'s [=job/job promise=] with a [=exception/create|new=] [=exception=] with |errorData|, in |equivalentJob|'s [=job/client=]'s [=environment settings object/Realm=].
1. Otherwise, set |callback| to the result of [=convert to an ECMAScript value|converting to an ECMAScript value=] |eventListenerCallback|.
3115
3118
1. If [$IsCallable$](|callback|) is false, then return false.
3116
3119
3117
-
Note: [=Event listener/Callback=] objects that use {{handleEvent}} are assumed to be non-empty. This avoids calling the {{handleEvent}} getters, which could modify the event listeners during this check.
3120
+
Note: [=event listener/Callback=] objects that use {{EventListener/handleEvent(event)}} are assumed to be non-empty. This avoids calling the {{EventListener/handleEvent(event)}} getters, which could modify the event listeners during this check.
3118
3121
3119
3122
1. If |callback|'s [=function body=] is not empty (i.e. either a [=statement=] or [=declaration=] exist), then return false.
0 commit comments