From 37cbcc2bf822c10dee5717610c90cb2b8627c548 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Fri, 14 Jul 2023 23:05:34 +0200 Subject: [PATCH] Remove browsing context check from WakeLock.request() (#363) Since whatwg/html#6315, the HTML spec suggests other specifications use "navigable" and associated concepts (along with Document) rather than "browsing context" in most cases. In this specific case, however, we can simply remove the step that checks if `document`'s browsing context is null -- there is no case in which a document is fully active _and_ has a null browsing context, as confirmed by whatwg/html#9509. Fixes #362. --- index.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/index.html b/index.html index 200c88a..bf5761e 100644 --- a/index.html +++ b/index.html @@ -327,10 +327,6 @@

|document|, return [=a promise rejected with=] a {{"NotAllowedError"}} {{DOMException}}. -
  • If the |document|'s [=Document/browsing context=] is `null`, - return [=a promise rejected with=] {{"NotAllowedError"}} - {{DOMException}}. -
  • If |document| is not [=Document/fully active=], return [=a promise rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.