diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 9d42f41f..4d5efaed 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -157,7 +157,7 @@

Service Worker Registration

A service worker registration has an associated registering script url (a URL).

A service worker registration has an associated installing worker (a service worker) whose state is installing. It is initially set to null.

A service worker registration has an associated waiting worker (a service worker) whose state is installed. It is initially set to null.

-

A service worker registration has an associated active worker (a service worker) whose state is either activating or activated. It is initially set to null.

+

A service worker registration has an associated active worker (a service worker) whose state is either activating or activated. It is initially set to null.

A service worker registration has an associated last update time. It is initially set to null.

A service worker registration has an associated uninstalling flag. It is initially unset.

@@ -434,7 +434,7 @@

update()

  • Let newestWorker be the result of running Get Newest Worker algorithm passing registration as its argument.
  • If newestWorker is null, return a promise rejected with an "InvalidStateError" exception.
  • Set registration's registering script url to newestWorker's script url.
  • -
  • Let p be the result of running Update algorithm, or its equivalent, passing the service worker client client and registration as the arguments with force bypass cache flag set.
  • +
  • Let p be the result of running Update algorithm, or its equivalent, passing the service worker client client and registration as the arguments.
  • Return the result of transforming p with:
    1. A fulfillment handler that returns undefined.
    2. @@ -1247,7 +1247,7 @@

      openWindow(url)

  • Let client be the result of running Capture Window Client algorithm, or its equivalent, with newContext as the argument.
  • -
  • Resolve promise with client.
  • +
  • Resolve promise with client.
  • @@ -2581,7 +2581,7 @@

    Update

  • Abort these steps.
  • -
  • If cacheControl's value has a max-age response Cache-Control directive and its value v in seconds is less than 86400, set worker's max age to v.
  • +
  • If cacheControl's value has a max-age response Cache-Control directive and its value v in seconds is less than 86400, set worker's max age to v.
  • Set registration's last update time to the current time.