whatwg/webidl

Indicate that thing needs user action to work

オープン

#137 opened on 2016/07/21

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (204 件のフォーク)github user discovery
good first issue⌛⌛⌛ duration:long

Repository metrics

Stars
 (493 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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?

コントリビューターガイド