From bb63ef002a7b381703ced391ed47a5ed90dca2c0 Mon Sep 17 00:00:00 2001 From: Alex Russell Date: Fri, 4 Apr 2014 14:19:31 -0700 Subject: [PATCH] Remove the 4xx unregistration. Refs #204. --- spec/service_worker/index.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 69f94bd8..461960d5 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -886,14 +886,7 @@

_Update

  • Abort these steps.
  • -
  • If fetching the script fails due to the server returning a 4xx response, then: -
      -
    1. Reject promise with the result of running the _Unregistration algorithm passing serviceWorkerRegistration.scope as the argument.
    2. -
    3. Set serviceWorkerRegistration.updatePromise to null.
    4. -
    5. Abort these steps.
    6. -
    -
  • -
  • 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: +
  • 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:
    1. Reject promise with a new NetworkError.
    2. Set serviceWorkerRegistration.updatePromise to null.