Firefox



postmarketOS ships the desktop version of Firefox as default in Phosh and Plasma Mobile, the mobile and privacy friendly configuration from mobile-config-firefox. To remove this configuration, uninstall the  package.

Installation
Depending on the user interface you have installed, Firefox is already part of your postmarketOS installation (e.g. in Phosh and Sxmo). For others, install the following two packages:

Instead of, you can also install   to get the slightly newer version (but be aware that sometimes it includes changes that break the mobile configuration, and we need a bit to catch up with it. Help with that is of course always appreciated).

Webapps
Warning: This no longer works on the recent versions of postmarketOS (including stable release) because Firefox has removed support for the site specific browser mode. You can, though, replace --ssb with --kiosk to achieve a similar result in certain sites. (--kiosk opens websites in kiosk-mode which is the same of a normal browsing session but without the browser UI (Menus,Url-bar,toolbar etc. etc). Some sites do not react well, and it is suggested to memorise the keyboard short-cuts of Firefox, especially the one for closing the active tab and for going backward/forward )

To create webapps for use with Firefox, the following shell script can be used. It generates a separate Firefox profile for isolation, and adds a desktop entry that opens the corresponding site as a single-site browser (without a url-bar). Save this script as, and mark it as executable. Running the command  will create a launcher shortcut to Hacker News.

Harware accelerated rendering
To make firefox on pinephone/pinetab/pb/pbp smoother you need to change  to true in. To ensure that it kicked in check, graphics->compositing should become OpenGL.

From Firefox 93, the legacy hardware acceleration layers have been disabled and only webrender is allowed. Webrender requires gles 3 to be able to use hardware acceleration, otherwise it will use "software webrenderer". Since Pinephone does not support gles3, from Firefox 93, the browser experience has become much worse because everything is software rendered. Fortunately firefox-esr (available from repositories and on par with security updates as the latest version) is still at v 91.6, so it is still possible to use legacy hardware acceleration layers. They are not enabled by default, to do it there is need to change two parameters in, that are   to true and   to true.

Hide tabs toolbar and navbar
Open firefox, search and install Panorama View addons (or whatever tabs view addons). Enter URL, choose Open Directory at Profile Directory. Edit chrome/userChrome.css(if it doesn't exist, you can create one)

Tabs Toolbar and navbar on top screen:

Tabs Toolbar and navbar on bottom screen:

Customize Toolbar to edit Panorama View first icon showing on navigation bar. Changing Phosh scale_screen to 1.75 and Firefox zoom to 150% to fix some glitches for small panel/display in Settings