Skip to content

Commit

Permalink
Remove browsing context check from WakeLock.request() (#363)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rakuco authored Jul 14, 2023
1 parent 40fd166 commit 37cbcc2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,6 @@ <h3>
|document|, return [=a promise rejected with=] a
{{"NotAllowedError"}} {{DOMException}}.
</li>
<li>If the |document|'s [=Document/browsing context=] is `null`,
return [=a promise rejected with=] {{"NotAllowedError"}}
{{DOMException}}.
</li>
<li data-tests="wakelock-active-document.https.window.html">If
|document| is not [=Document/fully active=], return [=a promise
rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.
Expand Down

0 comments on commit 37cbcc2

Please sign in to comment.