Skip to content

Commit 38d40c3

Browse files
committed
Remove the 4xx unregistration. Refs #204.
1 parent 7231820 commit 38d40c3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

spec/service_worker/index.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -886,14 +886,7 @@ <h1>_Update</h1>
886886
<li>Abort these steps.</li>
887887
</ol>
888888
</li>
889-
<li>If fetching the script fails due to the server returning a 4xx response, then:
890-
<ol>
891-
<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>
892-
<li>Set <var>serviceWorkerRegistration</var>.<var>updatePromise</var> to null.</li>
893-
<li>Abort these steps.</li>
894-
</ol>
895-
</li>
896-
<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:
889+
<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:
897890
<ol>
898891
<li>Reject <var>promise</var> with a new <code>NetworkError</code>.</li>
899892
<li>Set <var>serviceWorkerRegistration</var>.<var>updatePromise</var> to null.</li>

0 commit comments

Comments
 (0)