Re: [w3c/ServiceWorker] Introduce Extend Service Worker Lifetime algorithm (#1010)

jungkees commented on this pull request.



> @@ -3359,6 +3348,31 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
     </ol>
   </section>
 
+  <section algorithm="extend-service-worker-lifetime-algorithm">
+    <h3 id="extend-service-worker-lifetime-algorithm" dfn>Extend Service Worker Lifetime</h3>
+
+    <dl>
+      <dt>Input</dt>
+        <dd><var>event</var>, an {{ExtendableEvent}} object</dd>
+      <dt>Output</dt>
+        <dd>None</dd>
+    </dl>
+    <ol>
+      <li>If <var>event</var>'s <a>extend lifetime promises</a> is empty, unset <var>event</var>'s <a>extensions allowed flag</a> and abort these steps.</li>
+      <li>Let <var>extendLifetimePromises</var> be an empty array.</li>
+      <li>Run the following substeps <a>in parallel</a>:
+        <ol>
+          <li><em>SetupPromiseArray</em>: Set <var>extendLifetimePromises</var> to a copy of <var>event</var>'s <a>extend lifetime promises</a>.</li>

Right. That's what we discussed during the TPAC. My plan is to do https://github.com/w3c/ServiceWorker/issues/931#issuecomment-248570852 as a separate work. (This particular PR is for https://github.com/w3c/ServiceWorker/issues/931#issuecomment-248233338).

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

Received on Tuesday, 22 November 2016 10:49:19 UTC