whatwg/webidl

Indicate that thing needs user action to work

Ouverte

#137 ouverte le 21 juil. 2016

 (1 commentaire) (0 réaction) (0 personne assignée)HTML (204 forks)github user discovery
good first issue⌛⌛⌛ duration:long

Métriques du dépôt

Stars
 (493 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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?

Guide contributeur