- From: Jake Archibald <notifications@github.com>
- Date: Mon, 03 Jun 2019 05:31:14 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1415/review/244847567@github.com>
jakearchibald commented on this pull request.
>
Note: The [=ExtendableEvent/pending promises count=] is incremented even if the given promise has already been settled. The corresponding count decrement is done in the microtask queued by the reaction to the promise.
- 1. Upon [=upon fulfillment|fulfillment=] or [=upon rejection|rejection=] of |f|, [=queue a microtask=] to run these substeps:
- 1. Decrement the [=ExtendableEvent/pending promises count=] by one.
- 1. Let |registration| be the [=context object=]'s [=relevant global object=]'s associated [=ServiceWorkerGlobalScope/service worker=]'s [=containing service worker registration=].
- 1. If |registration|'s [=uninstalling flag=] is set, invoke [=Try Clear Registration=] with |registration|.
- 1. If |registration| is not null, invoke [=Try Activate=] with |registration|.
+ 1. Upon [=upon fulfillment|fulfillment=] or [=upon rejection|rejection=] of |promise|, [=queue a microtask=] to run these substeps:
+ 1. Decrement |event|'s [=ExtendableEvent/pending promises count=] by one.
+ 1. If |event|'s [=ExtendableEvent/pending promises count=] is 0, then:
Seems pointless to do the next steps if the count is > 0.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1415#pullrequestreview-244847567
Received on Monday, 3 June 2019 12:31:36 UTC