Skip to content

Allow requestFullscreen after page reloaded (same session, if it had document.fullscreenElement in the previous document) #262

Description

@light-and-ray

What is the issue with the Fullscreen API Standard?

Hello. I have a problem, I would like to persist my fullscreen state in the same session - across page reloads. I have a local webapp, and the page refreshes in case of app update, or backend restart. I want to keep information about fullscreen in session storage, and restore it after reload. But currently requestFullscreen requires "Transient user activation", and I get a security error

I think a good solution will be allowing requestFullscreen inside load event if the session had document.fullscreenElement in the previous document

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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