whatwg/webidl

Indicate that thing needs user action to work

Offen

#137 geöffnet am 21.07.2016

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)HTML (204 Forks)github user discovery
good first issue⌛⌛⌛ duration:long

Repository-Metriken

Stars
 (493 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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?

Contributor Guide