Skip to content

Commit

Permalink
Remove the 4xx unregistration. Refs #204.
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlyoff committed Apr 4, 2014
1 parent 7231820 commit 38d40c3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions spec/service_worker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -886,14 +886,7 @@ <h1>_Update</h1>
<li>Abort these steps.</li>
</ol>
</li>
<li>If fetching the script fails due to the server returning a 4xx response, then:
<ol>
<li>Reject <var>promise</var> with the result of running the <a href="#internal-unregistration-algorithm">_Unregistration algorithm</a> passing <var>serviceWorkerRegistration</var>.<var>scope</var> as the argument.</li>
<li>Set <var>serviceWorkerRegistration</var>.<var>updatePromise</var> to null.</li>
<li>Abort these steps.</li>
</ol>
</li>
<li>Else if fetching the script fails due to the server returning a 5xx response, or there is a DNS error, or the connection times out, then:
<li>Else if fetching the script fails due to the server returning a 4xx response or if fetching the script fails due to the server returning a 5xx response, or there is a DNS error, or the connection times out, then:
<ol>
<li>Reject <var>promise</var> with a new <code>NetworkError</code>.</li>
<li>Set <var>serviceWorkerRegistration</var>.<var>updatePromise</var> to null.</li>
Expand Down

0 comments on commit 38d40c3

Please sign in to comment.