[w3c/ServiceWorker] Improve handling of extend lifetime promises (#1049)

(1) This changes the approach to unsetting the extendable events'
extensions allowed flag. This change introduced a reference count based
approach instead of the promise-copying-and-checking approach.

(2) This also extends the opportunities of the lifetime extension by
allowing calling waitUntil() within microtasks queued by the given
promise's Promise.prototype.then callbacks.

Related issues:
 - https://github.com/w3c/ServiceWorker/issues/931 (1)
 - https://github.com/w3c/ServiceWorker/issues/935 (2)
 - https://github.com/w3c/ServiceWorker/issues/1039 (2)
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1049

-- Commit Summary --

  * Improve handling of extend lifetime promises

-- File Changes --

    M docs/index.bs (49)
    M docs/index.html (164)
    M docs/v1/index.bs (44)
    M docs/v1/index.html (157)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1049.patch
https://github.com/w3c/ServiceWorker/pull/1049.diff

-- 
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/1049

Received on Thursday, 5 January 2017 11:31:19 UTC