From 216a5f1d55bc8cf85d0270942a719bfed22eb033 Mon Sep 17 00:00:00 2001 From: Jungkee Song Date: Tue, 27 Jan 2015 10:14:08 +0900 Subject: [PATCH] Move the rejecting step of client.focus() --- spec/service_worker/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 050a2ec3..7dc6c2ba 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -820,10 +820,10 @@

focus()

The focus() method must run these steps or their equivalent:

    +
  1. If this algorithm is not allowed to show a popup, return a promise rejected with a "InvalidAccessError" exception.
  2. Let promise be a new promise.
  3. Run these steps in parallel:
      -
    1. If this algorithm is not allowed to show a popup, return a promise rejected with a "InvalidAccessError" exception.
    2. Let browsingContext be the context object's associated service worker client's global object's browsing context.
    3. Queue a task to run the following substeps on the context object's associated service worker client's responsible event loop using the user interaction task source: