[whatwg/fullscreen] Allow fullscreen on initial load of a page (#36)

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 (may be 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 UA 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?


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/36

Received on Wednesday, 30 March 2016 03:04:56 UTC