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

Indicate that thing needs user action to work #137

Open
marcoscaceres opened this issue Jul 21, 2016 · 1 comment
Open

Indicate that thing needs user action to work #137

marcoscaceres opened this issue Jul 21, 2016 · 1 comment
Labels
⌛⌛⌛ duration:long There goes your week-end good first issue Ideal for someone new to a WHATWG standard or software project

Comments

@marcoscaceres
Copy link
Member

marcoscaceres commented Jul 21, 2016

There are things in the platform that can only succeed because of some user action. For example, directly calling:

document.body.requestFullscreen();

In Gecko, results in the following warning:

⚠️  Request for fullscreen was denied because Element.requestFullscreen() 
was not called from inside a short running user-generated event handler.

Would it be useful to have some means of annotating such behavior using WebIDL?

@domenic
Copy link
Member

domenic commented Jul 21, 2016

I think this would be reasonable if it would be something bindings generators could use to generate generic code. I'm not sure if that is the case; we'd want to do an audit of existing platform uses of triggered by user activation.

If we did, we would probably define it as an extended attribute in HTML, since HTML is what defines triggered by user activation.

@tobie tobie added enhancement ⌛⌛⌛ duration:long There goes your week-end good first issue Ideal for someone new to a WHATWG standard or software project labels Jul 30, 2016
@annevk annevk removed the enhancement label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌛⌛⌛ duration:long There goes your week-end good first issue Ideal for someone new to a WHATWG standard or software project
Development

No branches or pull requests

4 participants