Skip to content

Commit a6f6a32

Browse files
committed
Follow-up commit for fbc0faa
1 parent fbc0faa commit a6f6a32

File tree

2 files changed

+168
-188
lines changed

2 files changed

+168
-188
lines changed

docs/index.bs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
434434
Note: The {{ServiceWorker}} objects returned from this attribute getter that represent the same [=/service worker=] are the same objects.
435435
</section>
436436

437-
<section algorithm>
438-
<h4 id="service-worker-registration-navigationpreload"><dfn>{{ServiceWorkerRegistration/navigationPreload}}</dfn></h4>
437+
<section algorithm="service-worker-registration-navigationpreload">
438+
<h4 id="service-worker-registration-navigationpreload">{{ServiceWorkerRegistration/navigationPreload}}</h4>
439439

440-
The {{navigationPreload}} attribute's getter *must* return the [=/service worker registration's=] {{NavigationPreloadManager}} object.
440+
The <dfn attribute for="ServiceWorkerRegistration"><code>navigationPreload</code></dfn> attribute *must* return [=ServiceWorkerRegistration/service worker registration=]'s {{NavigationPreloadManager}} object.
441441
</section>
442442

443443
<section algorithm="service-worker-registration-scope">
@@ -762,43 +762,43 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
762762
};
763763
</pre>
764764

765-
<section algorithm>
766-
<h4 id="navigation-preload-manager-enable"><dfn>{{NavigationPreloadManager/enable()}}</dfn></h4>
765+
<section algorithm="navigation-preload-manager-enable">
766+
<h4 id="navigation-preload-manager-enable">{{NavigationPreloadManager/enable()}}</h4>
767767

768-
The {{NavigationPreloadManager/enable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
768+
The <dfn method for="NavigationPreloadManager"><code>enable()</code></dfn> method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
769769

770770
1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].
771771
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" exception, and abort these steps.
772772
1. Set |registration|'s [=navigation preload enabled flag=].
773773
1. [=Resolve=] |promise| with undefined.
774774
</section>
775775

776-
<section algorithm>
777-
<h4 id="navigation-preload-manager-disable"><dfn>{{NavigationPreloadManager/disable()}}</dfn></h4>
776+
<section algorithm="navigation-preload-manager-disable">
777+
<h4 id="navigation-preload-manager-disable">{{NavigationPreloadManager/disable()}}</h4>
778778

779-
The {{NavigationPreloadManager/disable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
779+
The <dfn method for="NavigationPreloadManager"><code>disable()</code></dfn> method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
780780

781781
1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].
782782
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" exception, and abort these steps.
783783
1. Unset |registration|'s [=navigation preload enabled flag=].
784784
1. [=Resolve=] |promise| with undefined.
785785
</section>
786786

787-
<section algorithm>
788-
<h4 id="navigation-preload-manager-setheadervalue"><dfn>{{NavigationPreloadManager/setHeaderValue(value)}}</dfn></h4>
787+
<section algorithm="navigation-preload-manager-setheadervalue">
788+
<h4 id="navigation-preload-manager-setheadervalue">{{NavigationPreloadManager/setHeaderValue(value)}}</h4>
789789

790-
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=]:
790+
The <dfn method for="NavigationPreloadManager"><code>setHeaderValue(|value|)</code></dfn> method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:
791791

792792
1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].
793793
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" exception, and abort these steps.
794794
1. Set |registration|'s [=navigation preload header value=] to |value|.
795795
1. [=Resolve=] |promise| with undefined.
796796
</section>
797797

798-
<section algorithm>
799-
<h4 id="navigation-preload-manager-getstate"><dfn>{{NavigationPreloadManager/getState()}}</dfn></h4>
798+
<section algorithm="navigation-preload-manager-getstate">
799+
<h4 id="navigation-preload-manager-getstate">{{NavigationPreloadManager/getState()}}</h4>
800800

801-
The {{NavigationPreloadManager/getState()}} method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:
801+
The <dfn method for="NavigationPreloadManager"><code>getState()</code></dfn> method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:
802802

803803
1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].
804804
1. Let |state| be a new {{NavigationPreloadState}} dictionary.
@@ -2887,7 +2887,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
28872887
1. If |request| is a [=navigation request=] and |registration|'s [=navigation preload enabled flag=] is set, and |request|'s [=request/method=] is \`<code>GET</code>\`, then:
28882888
1. Let |preloadRequest| be the result of [=request/cloning=] the request |request|.
28892889
1. Let |preloadRequestHeaders| be |preloadRequest|'s [=request/header list=].
2890-
1. Let |preloadResponseObject| be a new {{Response}} object and a new associated {{Headers}} object whose [=guard=] is "`immutable`".
2890+
1. Let |preloadResponseObject| be a new {{Response}} object associated with a new {{Headers}} object whose [=guard=] is "`immutable`".
28912891
1. [=header list/Append=] to |preloadRequestHeaders| a new [=header=] whose [=header/name=] is \`<code>Service-Worker-Navigation-Preload</code>\` and [=header/value=] is |registration|'s [=navigation preload header value=].
28922892
1. Set |preloadRequest|'s [=skip-service-worker flag=].
28932893
1. Run the following substeps [=in parallel=]:
@@ -3558,4 +3558,4 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
35583558
The authors would also like to thank Dimitri Glazkov for his scripts and formatting tools which have been essential in the production of this specification. The authors are also grateful for his considerable guidance.
35593559

35603560
Thanks also to Vivian Cromwell, Greg Simon, Alex Komoroske, Wonsuk Lee, and Seojin Kim for their considerable professional support.
3561-
</section>
3561+
</section>

0 commit comments

Comments
 (0)