Firefox

Firefox is Article description::Mozilla's solution to the web browser. It is not the same thing as Firefox OS, which was a full operating system.

Aurora is the "unbranded" version of Mozilla's Firefox.

USE flags
The above list of USE flag is not comprehensive. Use (part of ) for a full list:

Emerge
To compile the source version of Firefox, issue:

Emerging the source version of Firefox can be a long process; a pre-compiled (binary) version does exist in the Gentoo repository, however users of the pre-built package should note the warning below. To emerge the Firefox binary, issue:

Xinput2 scrolling
This brings touch scrolling and multitouch support for Firefox:

MOZ_USE_XINPUT2 environment variable has to be set to a value of  in, or just before launching  in a shell. for example:

This also eliminates the predefined scroll step size for touchpad scrolling! All scrolling will be really smooth.

Wacom tablets/touchscreens may need extra configuration so they emit true touch events for X.

Multitouch zoom
This only works when the multitouch events reach Firefox, therefore the  activation above has to be done first.

Threads
Firefox >= 54 has 4 threads enabled by default. Theads can be adjusted by modifying the following in the  interface:

Where  is a integer number.

Disabling percent-encoding
Normally, URLs that are copied from the address bar get percent-encoded. This may cause an annoyance when certain non-Latin symbols (such as Cyrillic) get encoded, as they become unreadable to humans.

To disable percent-encoding when copying from the address bar, set the  option   to.

Method 1
Create this file:

Then insert this:

Method 2
https://gist.github.com/anonymous/a661949550a26b9522f79095f8ae2d94

Method 3
This patch works for both firefox 49 and firefox 51, and seems to be robust to changes.

The following patch also works for firefox 49.

The set  to false.

Special URLs
Firefox includes a few dozen special URLs that can be helpful in determining more information about various Firefox settings. These URLs can be entered into the Super Bar (via copy and paste) to view the special pages. A few of the more significant ones include:



Finally,  will display the whole list of Firefox' “about” pages.

See also Firefox chrome:// document URLs.

XDG integration
In order to make Firefox use XDG file associations set Content Type's Action to

To ensure Firefox is being used by other applications for handling HTTP and HTTPS links, run the following commands:

Running in sandbox
The Simple sandbox article explains why »Sandboxing Firefox is mandatory«.

Safer browsing with Add-ons
Firefox has a massive community behind it and a result many Add-ons have been created to aid with specific interests of users. Many users are concerned about their privacy (tracking, bubbling, targeting, etc) while web browsing. Installing Add-ons can aid in adding an extra level of privacy to their browsing.

The Add-on menu can be accessed by navigating the following menus:

uBlock Origin
A new ad blocker with lower resource usage, using same lists as Adblock. Very versatile and configurable.

Mozilla Add-ons page: https://addons.mozilla.org/en/firefox/addon/ublock-origin/

GitHub: https://github.com/gorhill/uBlock

Wikipedia: https://en.wikipedia.org/wiki/UBlock

NoScript
NoScript blocks JavaScript that is normally enabled by default. It can keep users safe and speed up web browsing.

Mozilla Add-ons page: https://addons.mozilla.org/en-US/firefox/addon/noscript/

Homepage: https://noscript.net/

uMatrix
Point and click to forbid/allow any class of requests made by your browser. Use it to block scripts, iframes, ads, Facebook, etc. uMatrix can also be used for spoofing HTTP referrer, spoofing User Agent strings, blocking hyperlink auditing and forcing strict HTTPS. Note, uMatrix can break many websites and most websites need configuration changes to work correctly.

Mozilla Add-ons page: https://addons.mozilla.org/en-US/firefox/addon/umatrix/

GitHub: https://github.com/gorhill/uMatrix

Middle mouse scroll (autoscroll)
Traditionally in Linux, the middle mouse button is used to paste the currently selected (highlighted) text into a text field. On Windows systems, the middle mouse button in Firefox is used for click-and-drag scrolling up and down the page. This functionality can be enabled in Firefox by opening  and setting the following value :



Middle click-and-drag scrolling should now be enabled.

Although not necessary, sometimes it is desirable to disable all other middle-click functionality within Firefox when using click-and-drap scrolling. Open  and set the following values to disable middle-click functionality:



gtk+:3 pulls in DBUS
Since version ≥53.0 Firefox has dropped gtk+:2 support urging Larry to use gtk+:3. This however by default pulls-in annoyances like DBUS. This can be avoided by using a patch from BSD available in mv overlay.

Crashes
If Firefox crashes for no apparent reason every few minutes with an error message like  it might help to add the Firefox user(s) to the video group:

Latest adobe-flash-23 does not work
It is possible to use PPAPI NPAPI plugin adapter. For more info read here

Lack of sound
If Firefox built with the  USE flag does not play sounds, and some web sites tell you to install Flash to play music, make sure that the necessary codecs are installed:

External resources

 * The official Firefox wiki (out-of-date)
 * Firefox on Mozilla's Forums
 * Firefox on Mozilla's Buglist
 * Change the interface language (L10N)
 * Creating a new profile