This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26479 - Platform does not support fullscreen, could fullscreenEnabled be false?
Summary: Platform does not support fullscreen, could fullscreenEnabled be false?
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Fullscreen (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-31 10:51 UTC by igsolla
Modified: 2014-08-01 06:59 UTC (History)
9 users (show)

See Also:


Attachments

Description igsolla 2014-07-31 10:51:50 UTC
I wonder if it would be possible to change the spec so that fullscreenEnabled is false if the platform does not support full screen. This is the first time that I'm reviewing a standard, so I suspect that there is a reason why we can't do that (if so, I'd be grateful if you could explain, thanks!).

The problem is that when the platform does not support fullscreen, fulscreenEnabled (http://fullscreen.spec.whatwg.org/#dom-document-fullscreenenabled) will return true but the request to enter fullscreen will fail with an error (http://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen) due to this condition: "There is a previously-established user preference, security risk, or platform limitation".

I think it would be better if fulscreenEnabled was false if we already know that the platform does not support full screen.
Comment 1 Anne 2014-07-31 11:14:02 UTC
Could do I guess. Want to solve this in HTML Ian if everyone is agreed?
Comment 2 Philip Jägenstedt 2014-07-31 13:26:58 UTC
I think Ignacio's suggestion is a good one.

I suggest baking "There is a previously-established user preference, security risk, or platform limitation" into the definition of fullscreenEnabled and using that elsewhere in the spec, that ought to do it.

I'm not sure why HTML would need to be involved, it just keeps track of the allowfullscreen attribute really...
Comment 3 Anne 2014-07-31 13:31:01 UTC
HTML sets the "fullscreen enabled flag". I guess we could keep that mostly scoped to HTML's attribute though.
Comment 4 Mounir Lamouri 2014-07-31 14:06:18 UTC
It looks very sensible. It seems that we could add that in the fullscreen specification. It would make sense actually given that the HTML logic is mostly related to the iframe sandboxing.
Comment 6 Philip Jägenstedt 2014-08-01 06:59:05 UTC
Looks great, thanks!