whatwg/webidl

Indicate that thing needs user action to work

Aberta

#137 aberto em 21 de jul. de 2016

 (1 comentário) (0 reação) (0 responsável)HTML (204 forks)github user discovery
good first issue⌛⌛⌛ duration:long

Métricas do repositório

Stars
 (493 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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?

Guia do colaborador