whatwg/webidl

Indicate that thing needs user action to work

开放

#137 创建于 2016年7月21日

 (1 条评论) (0 个反应) (0 位负责人)HTML (204 个派生)github user discovery
good first issue⌛⌛⌛ duration:long

仓库指标

星标
 (493 个星标)
PR 合并指标
 (30 天内没有已合并 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?

贡献者指南