Skip to content

Commit

Permalink
Reject update attempts for an installing worker. Fixes #800.
Browse files Browse the repository at this point in the history
  • Loading branch information
jungkees committed Mar 31, 2016
1 parent ccfa7e4 commit b2083b4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion spec/service_worker/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ spec: webidl; urlPrefix: https://heycam.github.io/webidl/
</ol>
</li>
<li>Let <var>newestWorker</var> be the result of running <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
<li>If <var>job</var>'s <a href="#dfn-job-type">job type</a> is <em>update</em>, and <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> is not <var>job</var>'s <a href="#dfn-job-script-url">script url</a>, then:
<li>If <var>job</var>'s <a href="#dfn-job-type">job type</a> is <em>update</em>, and <var>newestWorker</var>'s <a>state</a> is <em>installing</em> or <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> is not <var>job</var>'s <a href="#dfn-job-script-url">script url</a>, then:
<ol>
<li>Invoke <a href="#reject-job-promise-algorithm">Reject Job Promise</a> with <var>job</var> and a <code>TypeError</code>.</li>
<li>Invoke <a href="#finish-job-algorithm">Finish Job</a> with <var>job</var> and abort these steps.</li>
Expand Down
Loading

0 comments on commit b2083b4

Please sign in to comment.