Firefox: Difference between revisions

From NixOS Wiki
imported>Nh2
Link to Java issue
imported>Equirosa
m Removing an old section on Firefox Quantum, since all editions we provide are now Quantum
Line 8: Line 8:


The official builds are available by [[FAQ#How_can_I_install_a_proprietary_or_unfree_package.3F|enabling unfree]] and installing <code>firefox-bin</code>.
The official builds are available by [[FAQ#How_can_I_install_a_proprietary_or_unfree_package.3F|enabling unfree]] and installing <code>firefox-bin</code>.
=== How do I get Firefox Quantum (57)? ===
When using NixOS 17.09, stable, <code>nixos.firefox</code> is version 57 as of December 24th 2017<ref>https://botbot.me/freenode/nixos/msg/95027711/</ref>. Alternatively,
[[FAQ#How_can_I_install_a_proprietary_or_unfree_package.3F|enabling unfree]], and updating channels if required, allows the use of <code>nixos.firefox-bin</code> which is packaged from Mozilla's upstream released binaries.
Using NixOS unstable, the Nix-built <code>nixos.firefox</code> has been updated to 57.
Do note that <em>Quantum</em> is a marketing term, and as long as the version is greater than 57, the enhancements are in the Nix-built browser, which uses the name <em>Nightly</em> because of [https://www.mozilla.org/en-US/foundation/trademarks/faq/ trademark issues].


=== Firefox ESR and Oracle JDK ===
=== Firefox ESR and Oracle JDK ===

Revision as of 15:41, 24 April 2020

FAQ

I want Firefox, what is Nightly?

Mozilla's trademarks on Firefox disallows distributing unofficial builds using the Firefox trademark. This is why the Nix-built Firefox is named Nightly.

The official builds are available by enabling unfree and installing firefox-bin.

Firefox ESR and Oracle JDK

Note: It is not clear whether this section is out of date, and whether any Firefox release in Nixpkgs allows to use Java. See https://github.com/NixOS/nixpkgs/issues/84909.

Firefox stops support of Java plugin. To use Java plugin you have to use special Firefox ESR, Extended Support Release.

Also, Oracle doesn't provide a nice way to automate Oracle JDK installation without accepting license. See https://gist.github.com/danbst/30165b59996fb403068c74a95b108d6f for possible way to combine automated JDK and Firefox ESR download.

Troubleshooting

If you can't start the browser because of a configuration error.

For example:

firefox
1554035168269	Marionette	FATAL	Error de análisis XML: entidad indefinida
Ubicación: chrome://browser/content/browser.xul
Línea 2526, columna 13:            <toolbarbutton id="tracking-protection-preferences-button"
JavaScript error: resource:///modules/aboutpages/AboutPrivateBrowsingHandler.jsm, line 28: TypeError: this.pageListener is undefined

An easy way to get away from this is to start firefox with the

firefox -safe-mode

command. Then you can troubleshoot your actual problem or you can call your luck by calling the refresh option (a special button will appear when firefox starts in this mode). This wil reset your configuratino to a sane state and you will be ussually able to start the browser again, but you will loose most of your customization.

Enabling Plasma Browser Integration

1. Add following line to your configuration.nix: nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;

If you wandering where this part is coming from see NixOS Manual:Customising Packages

2. Install KDE's Firefox extension: Link