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
Note: The cache commit is allowed when the response's body is fully received.
1904
1904
1905
1905
1. Add |responsePromise| to |responsePromises|.
1906
-
1. Let |p| be [=waiting for all=] of |responsePromises|.
1907
-
1. Return the result of [=transforming=] |p| with a fulfillment handler that, when called with argument |responses|, performs the following substeps:
1906
+
1. Let |p| be the result of [=getting a promise to wait for all=] of |responsePromises|.
1907
+
1. Return the result of [=upon settling|transforming=] |p| with a fulfillment handler that, when called with argument |responses|, performs the following substeps:
1. Let |promise| be [=a promise resolved with=] undefined.
2073
2073
1. [=map/For each=]<var ignore>cacheName</var> → |cache| of the [=relevant name to cache map=]:
2074
-
1. Set |promise| to the result of [=transforming=] itself with a fulfillment handler that, when called with argument |response|, performs the following substeps:
2074
+
1. Set |promise| to the result of [=upon settling|transforming=] itself with a fulfillment handler that, when called with argument |response|, performs the following substeps:
2075
2075
1. If |response| is not undefined, return |response|.
2076
2076
1. Return the result of running the algorithm specified in {{Cache/match(request, options)}} method of {{Cache}} interface with |request| and |options| as the arguments (providing |cache| as thisArgument to the `[[Call]]` internal method of {{Cache/match(request, options)}}.)
<dfn method for="CacheStorage"><code>delete(|cacheName|)</code></dfn> method *must* run these steps:
2114
2114
2115
2115
1. Let |promise| be the result of running the algorithm specified in {{CacheStorage/has(cacheName)}} method with |cacheName|.
2116
-
1. Return the result of [=transforming=] |promise| with a fulfillment handler that, when called with argument |cacheExists|, performs the following substeps:
2116
+
1. Return the result of [=upon settling|transforming=] |promise| with a fulfillment handler that, when called with argument |cacheExists|, performs the following substeps:
1. <a>Dispatch</a> |e| at |installingWorker|'s [=service worker/global object=].
2726
2726
1. *WaitForAsynchronousExtensions*: Run the following substeps <a>in parallel</a>:
2727
2727
1. <span id="install-settle-step">Wait until |e| is not [=ExtendableEvent/active=].</span>
2728
-
1. If |e|'s [=ExtendableEvent/timed out flag=] is set, or the result of [=waiting for all=] of |e|'s [=extend lifetime promises=] rejected, set |installFailed| to true.
2728
+
1. If |e|'s [=ExtendableEvent/timed out flag=] is set, set |installFailed| to true.
2729
+
1. Let |p| be the result of [=getting a promise to wait for all=] of |e|'s [=extend lifetime promises=].
2730
+
1. [=Upon rejection=] of |p|, set |installFailed| to true.
2729
2731
2730
2732
If |task| is discarded, set |installFailed| to true.
Note: The cache commit is allowed when the response's body is fully received.
1785
1785
1786
1786
1. Add |responsePromise| to |responsePromises|.
1787
-
1. Let |p| be [=waiting for all=] of |responsePromises|.
1788
-
1. Return the result of [=transforming=] |p| with a fulfillment handler that, when called with argument |responses|, performs the following substeps:
1787
+
1. Let |p| be the result of [=getting a promise to wait for all=] of |responsePromises|.
1788
+
1. Return the result of [=upon settling|transforming=] |p| with a fulfillment handler that, when called with argument |responses|, performs the following substeps:
1. Let |promise| be [=a promise resolved with=] undefined.
1951
1951
1. [=map/For each=]<var ignore>cacheName</var> → |cache| of the [=relevant name to cache map=]:
1952
-
1. Set |promise| to the result of [=transforming=] itself with a fulfillment handler that, when called with argument |response|, performs the following substeps:
1952
+
1. Set |promise| to the result of [=upon settling|transforming=] itself with a fulfillment handler that, when called with argument |response|, performs the following substeps:
1953
1953
1. If |response| is not undefined, return |response|.
1954
1954
1. Return the result of running the algorithm specified in {{Cache/match(request, options)}} method of {{Cache}} interface with |request| and |options| as the arguments (providing |cache| as thisArgument to the `[[Call]]` internal method of {{Cache/match(request, options)}}.)
<dfn method for="CacheStorage"><code>delete(|cacheName|)</code></dfn> method *must* run these steps:
1992
1992
1993
1993
1. Let |promise| be the result of running the algorithm specified in {{CacheStorage/has(cacheName)}} method with |cacheName|.
1994
-
1. Return the result of [=transforming=] |promise| with a fulfillment handler that, when called with argument |cacheExists|, performs the following substeps:
1994
+
1. Return the result of [=upon settling|transforming=] |promise| with a fulfillment handler that, when called with argument |cacheExists|, performs the following substeps:
1. <a>Dispatch</a> |e| at |installingWorker|'s [=service worker/global object=].
2542
2542
1. *WaitForAsynchronousExtensions*: Run the following substeps <a>in parallel</a>:
2543
2543
1. <span id="install-settle-step">Wait until |e| is not [=ExtendableEvent/active=].</span>
2544
-
1. If |e|'s [=ExtendableEvent/timed out flag=] is set, or the result of [=waiting for all=] of |e|'s [=extend lifetime promises=] rejected, set |installFailed| to true.
2544
+
1. If |e|'s [=ExtendableEvent/timed out flag=] is set, set |installFailed| to true.
2545
+
1. Let |p| be the result of [=getting a promise to wait for all=] of |e|'s [=extend lifetime promises=].
2546
+
1. [=Upon rejection=] of |p|, set |installFailed| to true.
2545
2547
2546
2548
If |task| is discarded, set |installFailed| to true.
0 commit comments