28
submitted 6 months ago by Redjard@lemmy.dbzer0.com to c/firefox@lemmy.ml

I have been playing around with pwa-like experiences, and as part of that I tested "kiosk mode".

For those who don't know, you can start a "kiosk window" with the command firefox -kiosk --new-window <url>, which will open that url in fullscreen without a titlebar, right click menu, any overlays like the link preview or loading text, ...
I cancelled the fullscreen flag of my window, and had a resizable fully functional website in a frameless window.

Which was great and all, until I realized that in my running profile now every newly opened window is also in kiosk mode, and right click was globally disabled. My running firefox instance has been infected by the kiosk disease.

Anyway, it's not a large issue, I can just restart my infected instance. But I hate restarting my browser, it usually runs for multiple months.

My question is, is it possible to leave kiosk mode without restarting firefox?

top 10 comments
sorted by: hot top controversial new old
[-] biscuitswalrus@aussie.zone 3 points 6 months ago

Are you trying to use kiosk mode in a way that was never intended? Kiosks being public use terminals like in retail or used for search only terminals at public places?

This sounds like an XY problem to me intuitively since your use case wouldn't naturally match a kiosk situation.

[-] Redjard@lemmy.dbzer0.com 2 points 6 months ago

Yes, this is more of a recovery operation. Whatever the fix may be, modifying the browser itself to open a window without decorations would be easier.

There are some usecases in which you really don't want to restart your browser.
The easiest way to update your kernel is to restart your pc, yet there is a market for live-patch kernels.
If someone accidentally infects their instance with kiosk, it may occasionally be preferable for them to follow a complex procedure to recover the instance, rather than doing the "simple" thing of restarting it.

Restarting may solve many problems, but there is a more difficult but less invasive solution almost every time.
Much like reinstalling may solve even more problems, but you can see that doing a reinstallation is not usually the right course of action.

[-] boredsquirrel@slrpnk.net 2 points 6 months ago* (last edited 6 months ago)

I dont get your issue. Cant you just use a separate profile and only launch that in Kiosk mode? Using a desktop entry you can add an action like in my examples

Also interested how you disabled fullscreen.

And what the hell happened to Firefoxes SSB mode?

But have a look at this app which uses Firefox/Librewolf with custom CSS (that I helped with, using the awesome "SimpleMenuWizard" project) to be usable but minimal.

[-] Redjard@lemmy.dbzer0.com 2 points 6 months ago

SSB is still around, but also not what I was looking for. I just wanted a frameless window (and no other pwa functionality).
Fullscreen I disabled using my window manager. Under Linux you can commonly use alt+F3 to bring up the "right click on titlebar" menu, then disable fullscreen there. Generally ever window manager can disable fullscreen for windows, in a more or less accessible way (cough ms windows dll calls cough).

As mentioned below, This is recovery. I could ban kiosk mode to a separate profile, but unless you invent a time machine this won't undo having opened kiosk mode in an in-use profile.

[-] boredsquirrel@slrpnk.net 1 points 6 months ago

So the issue is you dont want to close your browser?

[-] Redjard@lemmy.dbzer0.com 1 points 6 months ago
[-] boredsquirrel@slrpnk.net 1 points 6 months ago

Lol XD

Ask FF devs but be aware this is an edge case

[-] Redjard@lemmy.dbzer0.com 2 points 6 months ago

I think the correct tool for my purpose would be something like Popup window, if you care about that part.

[-] yuknowhokat@lemmy.world 1 points 6 months ago

Have you tried the f11 key?

[-] Redjard@lemmy.dbzer0.com 1 points 6 months ago

Kiosk mode doesn't just force fullscreen, it disables right click, the tab and title bar, ...
Basically the browser is close to unusable until kiosk mode is ended, which I currently only know how to do via restarting Firefox.
And F11 is also disabled by kiosk mode. Interestingly, on the windows that were started before kiosk mode, it puts them into proper kiosk mode (after which F11 stops working of course).

this post was submitted on 26 May 2024
28 points (100.0% liked)

Firefox

17951 readers
325 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS