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

JS API for querying user activation #140

Closed
sideshowbarker opened this issue Sep 11, 2018 · 1 comment
Closed

JS API for querying user activation #140

sideshowbarker opened this issue Sep 11, 2018 · 1 comment
Assignees
Labels

Comments

@sideshowbarker
Copy link
Contributor

sideshowbarker commented Sep 11, 2018

https://github.com/dtapuska/useractivation

Currently there are ways to determine if a user gesture is active:

  • Copy and Pasting items to the clipboard
  • Requesting play on a media element and checking its status

Some of these actions are destructive to the user (ie. replacing the clipboard text) and while we cannot necessarily prevent them, it is advisable to provide functionality to the platform to discourage their use.

A few examples of use are:

  • Video autoplay
  • Audio play

Cc @dtapuska

@sideshowbarker sideshowbarker self-assigned this Sep 11, 2018
@sideshowbarker
Copy link
Contributor Author

So the right place for this to be defined is in the HTML spec, and there’s an existing pull request for it at whatwg/html#4009. So I think it’s not necessary for us to track it here too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant