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

@upsuper 
>I don't believe user would desire this kind of behavior, as it would break their normal expectation that clicking a link opens a page. I would consider it annoying that a page enters fullscreen unexpectedly.

I would argue that "normal expectation" is nearly nonexistent these days: (1) normal users usually can't tell a block on a page is a link or a button or something else, because authors can (and usually do) style it arbitrarily. (2) even for links, the behavior is already unpredictable: think about `target='_blank'`, `download` attribute, and `onclick` handler. 

With current fullscreen spec and implementation, a page can already enter fullscreen somewhat unexpectedly -- click on an arbitrary point on a page can trigger fullscreen. My suggestion still requires same "trusted events" to trigger fullscreen, how is it significantly more unexpected?

The linking page could say "view the presentation (would fullscreen automatically)" on the link/button if it want to be explicit. I also suggested `<a allowfullscreen>` to require opt-in, so the linking page can also put a check box to allow users to disable it.

UAs could also provide an option to disable "fullscreen on loading" globally.

>Also this function would still be very broken, because user may open the link in background tab, in which case fullscreen should not work anyway.

I think this is a reasonable case to disable fullscreen on loading.

>Also many websites nowadays insert an intermediate page to warn users that they are leaving the current site, which would prevent the auto-fullscreen from happening as well.

I'm not sure how such intermediate page works in your mind, but if it requires a click to confirm, it should not prevent auto-fullscreen. Anyway, I think the linking sites could have the right to allow or disable potentially fullscreen link. Even if I choose the iframe way, the embedder need to explicitly set `allowfullscreen`  to allow fullscreen.


-- 
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#issuecomment-248021167

Received on Monday, 19 September 2016 15:10:35 UTC