Open minimized firefox on full screen

(Muatdip127) #1

User open web page with js timer who after some time open page on new tab.
User minimize firefox.
Can I create extension of firefox to miximaze browser on full screen after some url was opened on scripts timer in anothe page?
Is this possible?

(Niklas Gollenstede) #2

I don’t entirely get your question, so let me answer this:

Can I put stuff in fullscreen from a timeout callback?

The answer to that is: No. You will (at least) get this error:

Request for fullscreen was denied because Element.requestFullscreen() was not called from inside a short running user-generated event handler.

(jscher2000) #3

You could look at using and setting the state to maximized?

I haven’t tried it myself. I think users might find it annoying if they didn’t trigger it explicitly.