Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -979,9 +979,9 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. If |registration|'s [=active worker=] is null, [=queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Set |registration|'s [=navigation preload enabled flag=].
1. Resolve |promise| with undefined.
1. [=Queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to resolve |promise| with undefined.
1. Return |promise|.
</section>

Expand All @@ -993,9 +993,9 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. If |registration|'s [=active worker=] is null, [=queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Unset |registration|'s [=navigation preload enabled flag=].
1. Resolve |promise| with undefined.
1. [=Queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to resolve |promise| with undefined.
1. Return |promise|.
</section>

Expand All @@ -1009,9 +1009,9 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. If |registration|'s [=active worker=] is null, [=queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Set |registration|'s [=navigation preload header value=] to |value|.
1. Resolve |promise| with undefined.
1. [=Queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to resolve |promise| with undefined.
1. Return |promise|.
</section>

Expand All @@ -1026,7 +1026,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
1. Let |state| be a new {{NavigationPreloadState}} dictionary.
1. If |registration|'s [=navigation preload enabled flag=] is set, set |state|["{{NavigationPreloadState/enabled}}"] to true.
1. Set |state|["{{NavigationPreloadState/headerValue}}"] to |registration|'s [=navigation preload header value=].
1. Resolve |promise| with |state|.
1. [=Queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=] to resolve |promise| with |state|.
Comment thread
monica-ch marked this conversation as resolved.
1. Return |promise|.
</section>

Expand Down
Loading