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

jungkees commented on this pull request.



> +
+      dictionary NavigationPreloadState {
+        boolean enabled = false;
+        ByteString headerValue;
+      };
+    </pre>
+
+    <section algorithm>
+      <h4 id="navigation-preload-manager-enable"><dfn>{{NavigationPreloadManager/enable()}}</dfn></h4>
+
+      The {{NavigationPreloadManager/enable()}} 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. Set |registration|'s [=navigation preload enabled flag=].
+        1. [=Resolve=] |promise|.

This should resolve with _undefined_ I guess.

-- 
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#pullrequestreview-13256982

Received on Friday, 16 December 2016 01:25:03 UTC