From 38d40c3c81df682f1cf42cbab943a8928a6ac729 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.