Re: [w3c/ServiceWorker] (WIP) Navigation preload (#983)

jungkees commented on this pull request.



> +
+    <section algorithm>
+      <h4 id="navigation-preload-manager-disable"><dfn>{{NavigationPreloadManager/disable()}}</dfn></h4>
+
+      The {{NavigationPreloadManager/disable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
+
+        1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].
+        1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" exception, and abort these steps.
+        1. Unset |registration|'s [=navigation preload enabled flag=].
+        1. [=Resolve=] |promise|.
+    </section>
+
+    <section algorithm>
+      <h4 id="navigation-preload-manager-setheadervalue"><dfn>{{NavigationPreloadManager/setHeaderValue(value)}}</dfn></h4>
+
+      The <a method for="NavigationPreloadManager"><code>setHeaderValue(|value|)</code></a> method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:

Ah.. That's right. I got it.

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

Received on Friday, 16 December 2016 13:48:23 UTC