Merged
Conversation
Contributor
Preview URLs (8 pages)
Flaws (8)Note! 3 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
URL:
URL:
URL:
(this comment was updated 2022-10-05 06:43:28.348164) |
sideshowbarker
approved these changes
Oct 5, 2022
Co-authored-by: Michael[tm] Smith <mike@w3.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request documents the recent addition of the
UserActivationAPI to the HTML specification. It is specified at https://html.spec.whatwg.org/multipage/interaction.html#the-useractivation-interface and defines 4 new features that need MDN pages:UserActivation:navigator.userActivation.UserActivationobjectUserActivation:isActiveandhasBeenActive.The API allows you to programmatically read the current window's user activation state.
Motivation
I've recently documented user activation here: https://developer.mozilla.org/en-US/docs/Web/Security/User_activation (per an OWD project proposal, see openwebdocs/project#73).
Additional motivation comes from this being a recent HTML standard addition at whatwg/html#8254 and implementation in Chromiums (and soon WebKittens).
Additional details
I'm not really happy with the example sections. Wasn't sure what to demo exactly. Happy to hear ideas.
Related issues and pull requests
The compat data has been merged already mdn/browser-compat-data#17887
(still being implemented in WebKit, will update when I see a version)