0

I'd like my users to open the browser and it goes in to full screen mode immediately. The configuration is Firefox 42 in Fedora 22. My application controls the server and the client. So we could use javascript (seems not possible for security reasons) or a Firefox extension. We were using R-Kiosk to do this, but it's not supported in new browsers. This question is the same as this except for Fedora.

If there's no way to do this from Firefox, is there a way to do this using the desktop (e.g. desktop icon)?

2 Answers 2

0

I was able to update R-Kiosk to 0.9.0.1 (https://addons.mozilla.org/en-us/firefox/addon/r-kiosk/) and customize it for my needs.

0

I found this useful using Firefox 78.0.2 (64-bit) on macos->

Open div in fullscreen on firefox

basically you need to change the security configurations of your firefox browser through about:config in the URL Search box in Firefox there change the full-screen-api.allow-trusted-requests-only to false

After changing those settings I used this code into my web application via JS and it worked well

document.addEventListener('DOMContentLoaded',function(){
 openFullscreen()
})
let elem = document.documentElement
function openFullscreen() {

  if (elem.requestFullscreen) {
    elem.requestFullscreen()
  } else if (elem.mozRequestFullScreen) { /* Firefox */
    elem.mozRequestFullScreen()
  } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
    elem.webkitRequestFullscreen()
  } else if (elem.msRequestFullscreen) { /* IE/Edge */
    elem.msRequestFullscreen()
  }
}
1
  • Ah and by the way if you want to get rid of the warning to escape fullScreen mode, just change the parameters full-screen-api.warning.delay and full-screen-api.warning.timeout to '0' Jul 24, 2020 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.