Skip to content

Allow fullscreen on initial load of a page #36

@duanyao

Description

@duanyao

I'd like the spec to allow a page to call requestFullscreen() on initial load.

One of the use case is slide show: slide shows ususally work best in fullscreen mode, however if a user click a link/button to navigate to a slide show page, he/she still need one more click to enter fullscreen mode. If requestFullscreen() were allowed on initial load (maybe in DOMContentLoaded and load events), the user expericence would be more seamless.

I'm aware of the security concern of the current spec. I think there are several solutions:

  1. A UI to alert user that the page has entered fullscreen mode and allow user to quit fullscreen. It seems most UAs already have such UI.
  2. Add opt-in attibute and parameter to <a> and window.open() to allow fullscreen on initial load. E.g. <a allowfullscreen href="link_to_a_slide">, window.open("link_to_a_slide", "", "allowfullscreen").
  3. Apply same origin rule. Fullscreen on initial load may be only allowed if the load was triggered by a page in the same origin.

I prefer to have only 1. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions