Enable fullscreen API calls for browser
While I was doing some QA on a video player I am working on, I noticed that by default, Sailfish OS's browser does not respond to element.mozRequestFullScreen()
, which as the function name implies, requests that the element be full screened. After going into about:config
and disabling full-screen-api.allow-trusted-requests-only
, I was able to get it working.
I would appreciate it if Jolla would change the default value of full-screen-api.allow-trusted-requests-only
from true
to false
, enabling the ability to create an immersive user experience for viewing content online (via the browser).
I don't think disabling security features by default is a good idea. The name "allow-trusted-requests-only" implies that there actually is a way allow fullscreen requests from specific sources - wouldn't it be better to find how to make your application trusted?
t4k1t ( 2015-01-03 20:47:55 +0200 )editYou shouldn't have to "make your application trusted". You should be able to enable full screen so long as a user-prompted event triggers a request for fullscreen, just like how it is in Firefox and Chrome.
JoshStrobl ( 2015-01-03 20:51:02 +0200 )editI see. If user input is still required to go to fullscreen with this setting I guess it wouldn't really be an issue. Sadly I couldn't find any documentation on what exactly this setting is supposed to do - do you have any reference on that?
t4k1t ( 2015-01-03 21:22:46 +0200 )edit