I was looking for something like this for a while, so here is how I made my own Firefox 'app' mode.
For Googlenauts with Windows/Mac 'Set Up Firefox' & 'Alternatively...' should also work on other OSs, perhaps with a few tweaks to the commands used, whilst 'Create Launcher' should work only for most Desktop Environments that implement the freedesktop 'specifactions'.
Set Up Firefox
First run firefox --ProfileManager from terminal (you may need to close any running instances of Firefox first, or use the -new-instance option).
Create a new profile and call it app. Select the 'Default' one (IMPORTANT: otherwise by default it will start the app profile you are creating) and press 'Exit'.

Now run firefox -P app. This will start Firefox from the new app profile you just created. As removing the tabs and navigation bar is now difficult or impossible in Firefox's settings, you will need to install some extensions to remove them - these ones work, though may be better ones available that hide the bars permanently:
- Hide Tab bar with one Tab - hides the tab bar when there is only one tab open.
- Hide Navigation Bar - you need to press F2 to show/hide the nav bar
Edit: Both options of hiding the tab+nav bars is also included with Classic Theme Restorer - small icons can also be set for a more compact layout.
Now, when you run firefox -P app -new-instance http://URL (e.g. firefox -P app -new-instance https://askubuntu.com/q/487936/178596), you should get a Firefox window like this:

Also, when you open Firefox by running firefox or clicking the Firefox button, it should open your normal Firefox profile with the tab and nav bars.
Works in Firefox 30.0, 40.0, partially tested in 52.
Create Launcher
You probably want to create a launcher to open your app from the menu - you can do so using this template:
[Desktop Entry]
Name=<APP NAME>
GenericName=<APP NAME>
#Comment=Browse the Web
Exec=firefox -P app -new-instance <https://URL>
Icon=<ICON>
Terminal=false
Type=Application
#MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
#Categories=Network;WebBrowser;
Keywords=<KEYWORDS>
Where:
<APP NAME>is the name of your app<https://URL>is the URL you want shown by default on launching the app.-new-instanceis optional but allows the Firefox App to be run as the same time as normal Firefox. See also: Mozilla Developer - Command Line options and the output offirefox --help.<ICON>is the name of a icon/usr/share/iconsor~/.local/share/icons, or the path to a icon file (preferably PNG or SVG I think).<KEYWORDS>- Relevant keywords delimited by;, you can include words you can use to search for the launcher in the Dash/Menu - e.g.Paper;Ink;Toner;- Optional: comment it out with a#at the beginning of the line if you don't use this.
For more info on how .desktop files work, you can read this
You can also follow both above steps, and create various different app profiles, just remember if you use a different name to app - e.g. gmailapp, you need to use that name consistently instead of app.
Also, I'm not sure the -new-instance option is needed much any more, I have left it in anyway.
See also: - https://superuser.com/questions/468580/create-application-shortcut-chromes-feature-in-firefox
Alternatively...
I was looking for a solution to create a script so I could run a command and create Firefox apps (so without extensions etc), and the following userChrome.css works well at hiding all the toolbars:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#TabsToolbar,
#PersonalToolbar,
#BookmarksToolbar,
#MenuToolbar,
#tabbrowser-tabs,
#nav-bar,
#TabsToolbar { display: none !important; }
I haven't tested it too much yet, thought it will be annoying to use since it hides all the open tabs....
Answer from Wilf on askubuntu.comI was looking for something like this for a while, so here is how I made my own Firefox 'app' mode.
For Googlenauts with Windows/Mac 'Set Up Firefox' & 'Alternatively...' should also work on other OSs, perhaps with a few tweaks to the commands used, whilst 'Create Launcher' should work only for most Desktop Environments that implement the freedesktop 'specifactions'.
Set Up Firefox
First run firefox --ProfileManager from terminal (you may need to close any running instances of Firefox first, or use the -new-instance option).
Create a new profile and call it app. Select the 'Default' one (IMPORTANT: otherwise by default it will start the app profile you are creating) and press 'Exit'.

Now run firefox -P app. This will start Firefox from the new app profile you just created. As removing the tabs and navigation bar is now difficult or impossible in Firefox's settings, you will need to install some extensions to remove them - these ones work, though may be better ones available that hide the bars permanently:
- Hide Tab bar with one Tab - hides the tab bar when there is only one tab open.
- Hide Navigation Bar - you need to press F2 to show/hide the nav bar
Edit: Both options of hiding the tab+nav bars is also included with Classic Theme Restorer - small icons can also be set for a more compact layout.
Now, when you run firefox -P app -new-instance http://URL (e.g. firefox -P app -new-instance https://askubuntu.com/q/487936/178596), you should get a Firefox window like this:

Also, when you open Firefox by running firefox or clicking the Firefox button, it should open your normal Firefox profile with the tab and nav bars.
Works in Firefox 30.0, 40.0, partially tested in 52.
Create Launcher
You probably want to create a launcher to open your app from the menu - you can do so using this template:
[Desktop Entry]
Name=<APP NAME>
GenericName=<APP NAME>
#Comment=Browse the Web
Exec=firefox -P app -new-instance <https://URL>
Icon=<ICON>
Terminal=false
Type=Application
#MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
#Categories=Network;WebBrowser;
Keywords=<KEYWORDS>
Where:
<APP NAME>is the name of your app<https://URL>is the URL you want shown by default on launching the app.-new-instanceis optional but allows the Firefox App to be run as the same time as normal Firefox. See also: Mozilla Developer - Command Line options and the output offirefox --help.<ICON>is the name of a icon/usr/share/iconsor~/.local/share/icons, or the path to a icon file (preferably PNG or SVG I think).<KEYWORDS>- Relevant keywords delimited by;, you can include words you can use to search for the launcher in the Dash/Menu - e.g.Paper;Ink;Toner;- Optional: comment it out with a#at the beginning of the line if you don't use this.
For more info on how .desktop files work, you can read this
You can also follow both above steps, and create various different app profiles, just remember if you use a different name to app - e.g. gmailapp, you need to use that name consistently instead of app.
Also, I'm not sure the -new-instance option is needed much any more, I have left it in anyway.
See also: - https://superuser.com/questions/468580/create-application-shortcut-chromes-feature-in-firefox
Alternatively...
I was looking for a solution to create a script so I could run a command and create Firefox apps (so without extensions etc), and the following userChrome.css works well at hiding all the toolbars:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#TabsToolbar,
#PersonalToolbar,
#BookmarksToolbar,
#MenuToolbar,
#tabbrowser-tabs,
#nav-bar,
#TabsToolbar { display: none !important; }
I haven't tested it too much yet, thought it will be annoying to use since it hides all the open tabs....
I have an easier way I usually do this. It worked with a stock Firefox (<57) installation without any customization. You can even change the height and width of the window.
The command:
firefox -url 'data:text/html;charset=utf-8,<!DOCTYPE html><html><body><script>window.open("http://google.com", "_blank","height=400,width=600,menubar=no,location=no,toolbar=no,left=100,top=100")<%2Fscript><%2Fbody><%2Fhtml>'
Just change http://google.com to the URL. You can also change the height and width variables (in pixels).
How do I start Firefox in a single window with titlebar, but without urlbar and tabs?
Open new popup window without address bars in firefox & IE - Stack Overflow
Open Chrome or Firefox without tabs and other menu items and with a set screen position and size
[SOLVED]How to properly hide address bar from Firefox 96.0? - Mozillians - Mozilla Discourse
For that, there once was an addon called "Open Chromeless" – but it was removed from AMO. A work-around is described here; I've just checked it and it seems to work. Partly. Cannot get rid of the addressbar, and there's a frame around the window. If you can live with that:
- Press Shift-F4 to open the Scratchpad
In the editor, enter
window.open("https://superuser.com/", "_blank","width=800,height=600,resizable");(replace the URL with the one you want to use)
- Click "Run" on the scratchpad toolbar
Now a new "chrome-less" window should open with the page specified. Resize it to your needs:

Screenshot of the "chromeless window" (click to enlarge)
Right-click next to the addressbar, as shown in the screenshot, lets you disable the address bar as well (untick "Navigation toolbar") – but note that would remove it from your main window as well.
I'm aware this does not fully match your request (it's not launching from the command line, and leaves at least a frame around the window), but it comes as close as I could get to it.
Wanted to leave this here, it seems to be a barely-documented feature of Firefox called "Single Site Browser":
https://support.mozilla.org/en-US/questions/1292666
Apparently, Firefox disallowed hiding of the location bar unless you launch Firefox with this mode. This SSB mode does still show the window frame (caption with window title, maximise, close buttons, etc.), but all other window chrome is gone.
Now I'm looking for a way to use add-ons in this mode... :(
I'm running Firefox 102.0 on Xubuntu 20.04.
This is Plex TV running on Chromium using this command:
chromium-browser %U --start-maximized --app=https://app.plex.tv/desktop/
I want to implement this in Firefox because Chromium's Picture-in-Picture isn't as good as Firefox's.
I've researched this on Google and found this:
Hi Kevin, I think this is not fully debugged and that's why it isn't in the MDN article yet, but if you want to experiment:
(A) Enable the "Single Site Browser" feature in Firefox
(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.
(2) In the search box in the page, type or paste ssb and pause while the list is filtered
(3) Double-click the browser.ssb.enabled preference to switch the value from false to true
(B) Launch the URL with the -ssb switch
For example:
"C:\Program Files\Mozilla Firefox\firefox.exe" -ssb https://www.mozilla*.*org/
Is that roughly what you're looking for?
However, this doesn't seem to work on Firefox 102.0 on Xubuntu 20.04. I've also found kiosk mode, but that isn't what I'm looking for though.
Firefox 3.0 and higher have disabled setting location by default. resizable and status are also disabled by default. You can verify this by typing `about:config' in your address bar and filtering by "dom". The items of interest are:
- dom.disable_window_open_feature.location
- dom.disable_window_open_feature.resizable
- dom.disable_window_open_feature.status
You can get further information at the Mozilla Developer site. What this basically means, though, is that you won't be able to do what you want to do.
One thing you might want to do (though it won't solve your problem), is put quotes around your window feature parameters, like so:
window.open('/pageaddress.html','winname','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');
I agree we can not hide address bar in modern browsers, but we can hide the URL in address bar (e.g show URL about:blank). The following is my work around solution:
var iframe = '<html><head><style>body, html {width: 100%; height: 100%; margin: 0; padding: 0}</style></head><body><iframe src="https://www.w3schools.com" style="height:calc(100% - 4px);width:calc(100% - 4px)"></iframe></body></html>';
var win = window.open("","","width=600,height=480,toolbar=no,menubar=no,resizable=yes");
win.document.write(iframe);
Is there an extension to remove the top two bars so it's true full screen? Is this possible on Firefox or even Chrome? I have a vertical monitor and it would fit it a lot more while I watch media as the top bars are just taking up valuable space.
This is what I mean btw, the first picture is what it is by default https://i.imgur.com/6QFHUeU.png but I want it to look like this without any bars above showing tab or address bar like this: https://i.imgur.com/bayVbiN.png
Any help is much appreciated.
EDIT: This works for now: https://addons.mozilla.org/en-US/firefox/addon/new-window-without-toolbar/
Can't find a way to achieve this with Firefox 57.0.1 on Mac.
When you open Safari or Chrome in full screen on Mac, the address bar and the tabs disappear.
All my research on Google lead me to some outdated add ons that don't work anymore on FF57.
Has anyone found a way to achieve true full screen with FF57?
I'm using a self-written stylesheet to achieve that purpose for Firefox.
It hides the complete top-bar and appears when hovering over the top window-border, or focusing the address-bar with the key-combination Ctrl+L.
It's not perfect (e.g. there can be a flickering effect when focusing the address-bar, or after clicking the hamburger-symbol to open the menu, you need to use the Arrow-Down-key for selecting a menu-item) but works for me:
https://github.com/ida/skriptz/blob/dde60dadcca5bb45ce6ca14bb74373637f31a309/setup/browser/ff/userChrome.css
F11 really maximise the window. But if you move your mouse (or presss any key), the navigation bar reappears, thus revealing the URL again !
For hiding URL
- Firefox: View -> Toolbars -> Untick "Navigation bar" Toolbar