Skip to content

Commit

Permalink
Backport 5e86528 to V1
Browse files Browse the repository at this point in the history
  • Loading branch information
jungkees committed May 29, 2017
1 parent 5e86528 commit bf5d945
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 237 deletions.
4 changes: 2 additions & 2 deletions docs/v1/index.bs
Expand Up @@ -2329,7 +2329,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
1. If |newestWorker| is null, abort these steps.
1. Let |job| be the result of running <a>Create Job</a> with *update*, |registration|'s [=service worker registration/scope url=], |newestWorker|'s [=service worker/script url=], null, and null.
1. Set |job|'s <a>worker type</a> to |newestWorker|'s [=service worker/type=].
1. Set |job|'s <a>force bypass cache flag</a> if its *force bypass cache flag* is set.
1. Set |job|'s <a>force bypass cache flag</a> if the *force bypass cache flag* is set.
1. Invoke <a>Schedule Job</a> with |job|.
</section>

Expand Down Expand Up @@ -2483,7 +2483,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
1. Set |workerGlobalScope|'s [=WorkerGlobalScope/HTTPS state=] to |serviceWorker|'s <a>script resource</a>'s <a>HTTPS state</a>.
1. Set |workerGlobalScope|'s [=WorkerGlobalScope/referrer policy=] to |serviceWorker|'s <a>script resource</a>'s [=script resource/referrer policy=].
1. Set |workerGlobalScope|'s [=WorkerGlobalScope/type=] to |serviceWorker|'s <a>type</a>.
1. Set |workerGlobalScope|'s [=ServiceWorkerGlobalScope/force bypass cache for importscripts flag=] if its *force bypass cache for importscripts flag* is set.
1. Set |workerGlobalScope|'s [=ServiceWorkerGlobalScope/force bypass cache for importscripts flag=] if the *force bypass cache for importscripts flag* is set.
1. Create a new {{WorkerLocation}} object and associate it with |workerGlobalScope|.
1. If |serviceWorker| is an <a>active worker</a>, and there are any <a>tasks</a> queued in |serviceWorker|'s <a>containing service worker registration</a>'s [=service worker registration/task queues=], <a lt="queue a task">queue</a> them to |serviceWorker|'s <a>event loop</a>'s [=/task queues=] in the same order using their original <a>task sources</a>.
1. If |script| is a <a>classic script</a>, then <a lt="run a classic script">run the classic script</a> |script|. Otherwise, it is a <a>module script</a>; <a lt="run a module script">run the module script</a> |script|.
Expand Down

0 comments on commit bf5d945

Please sign in to comment.