Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove browsing context check from WakeLock.request() #363

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

rakuco
Copy link
Member

@rakuco rakuco commented Jul 14, 2023

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.


Preview | Diff

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.
@rakuco rakuco requested a review from reillyeon July 14, 2023 08:26
@rakuco rakuco merged commit 37cbcc2 into gh-pages Jul 14, 2023
1 check passed
@rakuco rakuco deleted the remove-browsing-context-reference branch July 14, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop using "browsing context" in the spec
2 participants