-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
addition/proposalNew features or enhancementsNew features or enhancements
Description
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:
- 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.
- Add opt-in attibute and parameter to
<a>
andwindow.open()
to allow fullscreen on initial load. E.g.<a allowfullscreen href="link_to_a_slide">
,window.open("link_to_a_slide", "", "allowfullscreen")
. - 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?
tmscsb and martin19850926
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancements