diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index a3d01ba9..8b84cb25 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -902,6 +902,8 @@

Cache

Each Cache object is associated with a [[RequestToResponseMap]]. Multiple separate objects implementing the Cache interface across service worker environments can all be associated with the same [[RequestToResponseMap]] simultaneously.

+

Caveat: Implementors should note that the interface defined in this section is subject to change according to the ongoing discussion.

+

match(request, params)

@@ -1472,6 +1474,7 @@

FetchEvent

Each event using FetchEvent interface has the following associated flag that is initially unset:

@@ -1484,12 +1487,13 @@

event.respondWith(r)

respondWith(r) method must run these steps or their equivalent:

    -
  1. If the wait to respond flag is set, then: +
  2. If the respond-with entered flag is set, then:
    1. Throw an "InvalidStateError" exception.
    2. Abort these steps.
  3. +
  4. Set the respond-with entered flag.
  5. Set the wait to respond flag.
  6. Wait until r settles.
  7. If r rejected with an exception, then: @@ -2082,9 +2086,13 @@

    [[HandleFetch]]

  • Let event be the event for which this event listener was invoked.
  • -
  • If event's wait to respond flag is set, then: +
  • If event's respond-with entered flag is set, then:
    1. Set respondWithEntered to true.
    2. +
    +
  • +
  • If event's wait to respond flag is set, then: +
    1. Wait until event's wait to respond flag is unset.
    2. If event's respond-with error flag is set, then: