- From: Jake Archibald <notifications@github.com>
- Date: Fri, 16 Dec 2016 03:03:41 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 16 December 2016 11:04:12 UTC
jakearchibald 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=]:
I thought the same, but it's [a new promise](https://www.w3.org/2001/tag/doc/promises-guide/#a-new-promise).
--
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 11:04:12 UTC