Skip to content

Commit

Permalink
Backport 5430012 to V1
Browse files Browse the repository at this point in the history
  • Loading branch information
jungkees committed Jun 7, 2017
1 parent 5430012 commit b2e4243
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/v1/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe

1. If |serviceWorker| is not running, abort these steps.
1. Let |serviceWorkerGlobalScope| be |serviceWorker|'s [=service worker/global object=].
1. Set |serviceWorkerGlobalScope|'s closing flag to true.
1. Set |serviceWorkerGlobalScope|'s [=WorkerGlobalScope/closing=] flag to true.
1. [=set/Remove=] all the [=items=] from |serviceWorker|'s [=set of extended events=].
1. If there are any <a>tasks</a>, whose <a>task source</a> is either the <a>handle fetch task source</a> or the <a>handle functional event task source</a>, queued in |serviceWorkerGlobalScope|'s <a>event loop</a>'s [=/task queues=], <a lt="queue a task">queue</a> them to |serviceWorker|'s <a>containing service worker registration</a>'s corresponding [=service worker registration/task queues=] in the same order using their original <a>task sources</a>, and discard all the <a>tasks</a> (including <a>tasks</a> whose <a>task source</a> is neither the <a>handle fetch task source</a> nor the <a>handle functional event task source</a>) from |serviceWorkerGlobalScope|'s <a>event loop</a>'s [=/task queues=] without processing them.

Expand Down
7 changes: 4 additions & 3 deletions docs/v1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@
}
}
</style>
<meta content="Bikeshed version 34209db86579ed3f0e75afb470f2788a2646155f" name="generator">
<meta content="Bikeshed version 5a452c3b31d7ee897346bcc9d1310197c08e491a" name="generator">
<link href="https://www.w3.org/TR/service-workers/" rel="canonical">
<style>/* style-md-lists */

Expand Down Expand Up @@ -1425,7 +1425,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">Service Workers 1</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-06-05">5 June 2017</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-06-07">7 June 2017</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -4859,7 +4859,7 @@ <h3 class="heading settled" id="terminate-service-worker-algorithm"><span class=
<li data-md="">
<p>Let <var>serviceWorkerGlobalScope</var> be <var>serviceWorker</var>’s <a data-link-type="dfn" href="#dfn-service-worker-global-object" id="ref-for-dfn-service-worker-global-object-4">global object</a>.</p>
<li data-md="">
<p>Set <var>serviceWorkerGlobalScope</var>’s closing flag to true.</p>
<p>Set <var>serviceWorkerGlobalScope</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/workers.html#dom-workerglobalscope-closing">closing</a> flag to true.</p>
<li data-md="">
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#list-remove">Remove</a> all the <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#list-item">items</a> from <var>serviceWorker</var>’s <a data-link-type="dfn" href="#dfn-set-of-extended-events" id="ref-for-dfn-set-of-extended-events-1">set of extended events</a>.</p>
<li data-md="">
Expand Down Expand Up @@ -6465,6 +6465,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#application-cache">application cache</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">browsing context</a>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#classic-script">classic script</a>
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#dom-workerglobalscope-closing">closing</a>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-creation-url">creation url</a>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#current-global-object">current global object</a>
<li><a href="https://html.spec.whatwg.org/multipage/comms.html#dom-messageevent-data">data</a>
Expand Down

0 comments on commit b2e4243

Please sign in to comment.