From 3d0ee145e27bcaf725ae3050759893c2daf3e363 Mon Sep 17 00:00:00 2001 From: Jungkee Song Date: Wed, 4 Nov 2015 19:40:07 +0900 Subject: [PATCH] Invoke the has focus steps instead of hasFocus() method directly. Fixes #633. --- spec/service_worker/index.html | 2 +- spec/service_worker_1/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 79eb79e8..b06dc1f7 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -3395,7 +3395,7 @@

Capture Window Client

  1. Let windowClient be a new WindowClient object that represents browsingContext.
  2. Set windowClient's visibility state to browsingContext's active document's visibilityState attribute value.
  3. -
  4. Set windowClient's focus state to the result of running browsingContext's active document's hasFocus() method.
  5. +
  6. Set windowClient's focus state to the result of running the has focus steps with browsingContext's active document as the argument.
  7. Return windowClient.
diff --git a/spec/service_worker_1/index.html b/spec/service_worker_1/index.html index 506bfe81..4afe59fc 100644 --- a/spec/service_worker_1/index.html +++ b/spec/service_worker_1/index.html @@ -3393,7 +3393,7 @@

Capture Window Client

  1. Let windowClient be a new WindowClient object that represents browsingContext.
  2. Set windowClient's visibility state to browsingContext's active document's visibilityState attribute value.
  3. -
  4. Set windowClient's focus state to the result of running browsingContext's active document's hasFocus() method.
  5. +
  6. Set windowClient's focus state to the result of running the has focus steps with browsingContext's active document as the argument.
  7. Return windowClient.