Skip to content

Screen orientation change events as a special kind of user activation #8490

@marcoscaceres

Description

@marcoscaceres

A common use case on video sites is:

  1. A user starts playing a video on their phone in portrait mode.
  2. After a few seconds, the user decides they are enjoying the video... so they rotate their phone into landscape mode.
  3. Rotating the device triggers a "user initiated" orientation change event.
  4. The site can then call .requestFullscreen() and have such orientation changes be classified as "triggered by user activation".

HTML currently specifies "activation triggering input events", but excludes orientation change events as counting as having "transient activation".

The Screen Orientation spec had some hacky text that would magically label these specific orientation events as having been initiated by the user. And the Fullscreen API was depending on that. However, it would be good to have a generic mechanism for labelling these Events properly and having them participate in the user activation model (i.e., they are classified as being part of "activation triggering input events").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions