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

Conditional permissions #189

Open
martinthomson opened this issue Feb 11, 2019 · 0 comments
Open

Conditional permissions #189

martinthomson opened this issue Feb 11, 2019 · 0 comments

Comments

@martinthomson
Copy link
Member

As the use of the tools in this spec are being used for more different features, we're starting to see the gaps.

For instance, requests for media autoplay (#172) and fullscreen (#26) highlight the potential need for conveying additional permissions, specifically engagement. The storage access API implemented variously by Apple and Mozilla also shows how engagement with the origin is a necessary precondition for even showing a permissions prompt, and it might be necessary - even with permission - to have engagement before the associated action can be triggered.

The API currently manages this poorly. If a permission is queried, what should it say if a request might be an outright denial in the absence of an engagement gesture, but a prompt if there is a recent click or key press?

The permissions state really isn't sufficient for this.

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

No branches or pull requests

1 participant