Re: [w3c/ServiceWorker] Specify how "terminate" works (PR #1612)

@annevk commented on this pull request.



> @@ -2975,6 +2975,30 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
           1. Set |serviceWorker|'s [=start status=] to null.
   </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">
+        : <dfn>state</dfn> (default "<code>ongoing</code>")
+        :: "<code>ongoing</code>" or "<code>terminated</code>".
+
+        : <dfn>preload fetch controller</dfn> (default null)

I'm not sure we want to reuse the word preload for this, but I'm also not sure the original controller needs to be installed here. Can it not forward it being aborted?

-- 
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/1612#pullrequestreview-807037704

Received on Tuesday, 16 November 2021 09:29:39 UTC