Skip to content

Document user activation requirement of the Fullscreen API #22303

@foolip

Description

@foolip

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

Implementations of the Fullscreen API have always required "user activation" to go fullscreen, such as a click event. The documentation on MDN doesn't make any mention of this.

What did you expect to see?

Probably link to a common page describing user activation in general, and expand the toggleFullscreen() example to use a "click" event handler, so that it can be copy-pasted and basically work.

Do you have any supporting links, references, or citations?

In the spec this is documented here:
https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen

And the requirement to consume the user gesture is being added here:
whatwg/fullscreen#153

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

Labels

Content:WebAPIWeb API docseffort: mediumThis task is a medium effort.help wantedIf you know something about this topic, we would love your help!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions