Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Nov 8, 2021
1 parent 0c53eda commit 3992ad8
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2976,6 +2976,8 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
</section>

<section>
<h3 id="terminate-service-worker-fetch-algorithm">Terminating a Service-Worker Fetch</h3>

A <dfn export>service worker fetch controller</dfn> is a [=/struct=]. It has the following [=struct/items=]:

<section dfn-for="service worker fetch controller">
Expand All @@ -2985,24 +2987,17 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
: <dfn>preload fetch controller</dfn> (default null)
:: Null or a [=fetch controller=]
</section>
</section>

<section algorithm>
<section algorithm>
The <dfn export>Terminate a Service-Worker Fetch</dfn> algorithm enables terminating an ongoing [=handle fetch=] process.

The <dfn export>terminate Service-Worker Fetch</dfn> algorithm enables terminating an ongoing [=handle fetch=] process.
: Input
:: |controller|, a [=service worker fetch controller=]
: Output
:: None

: Input
:: |controller|, a [=service worker fetch controller=]
: Output
:: None

1. Set |controller|'s [=service worker fetch controller/state=] to "<code>terminated</code>".
1. If |controller|'s [=service worker fetch controller/preload fetch controller=] is not null, [=fetch controller/abort=] |controller|'s [=service worker fetch controller/preload fetch controller=].
</section>

given a [=service worker fetch controller=] |controller|:

</section>
1. Set |controller|'s [=service worker fetch controller/state=] to "<code>terminated</code>".
1. If |controller|'s [=service worker fetch controller/preload fetch controller=] is not null, [=fetch controller/abort=] |controller|'s [=service worker fetch controller/preload fetch controller=]. </section>

<section algorithm>
<h3 id="on-fetch-request-algorithm"><dfn export>Handle Fetch</dfn></h3>
Expand Down

0 comments on commit 3992ad8

Please sign in to comment.