source: xsoft/graphweb/firefox.xml@ b0540bce

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since b0540bce was b0540bce, checked in by Ken Moffat <ken@…>, 22 months ago

Firefox - change title to 102.0esr.

102.0 is not identical, we can drop the esr if we wish on next
release.

  • Property mode set to 100644
File size: 24.8 KB
RevLine 
[f939f05]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f939f05]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[2eae5bc]7 <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;esr/source/firefox-&firefox-version;esr.source.tar.xz">
[8dfc5c3]8 <!ENTITY firefox-download-ftp " ">
[e51466a]9 <!ENTITY firefox-md5sum "72d8bf3644c4db2cced72fa3f712a4a1">
10 <!ENTITY firefox-size "464 MB">
[5c2b024]11 <!-- NB with stylo, much of the build uses rust, and therefore cargo files.
[9da4cc6f]12 But the extra cached cargo files, if any, seem to be minimal -->
[e51466a]13 <!ENTITY firefox-buildsize "7.1 GB (199 MB installed) without tests">
[9a469bc]14 <!-- editors: with ff63 and rust-1.29, ./mach build -j4 is probably the
[fe5f563d]15 most practical way to get a timing on a machine with more cores, if taking
16 cores offline is not practical. If in doubt, round up -->
[e51466a]17 <!ENTITY firefox-time "24 SBU (on a typical 4-core machine) without tests">
[f939f05]18]>
19
[ffe47ca2]20<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]21 <?dbhtml filename="firefox.html" ?>
22
23 <sect1info>
24 <date>$Date$</date>
25 </sect1info>
26
[b0540bce]27<!-- for 102.0 indicate this is the ESR variant,
28 can revert to plain number when 102.1 appears
29 <title>Firefox-&firefox-version;</title>-->
30 <title>Firefox-&firefox-version;esr</title>
[b81991e1]31
32 <indexterm zone="firefox">
33 <primary sortas="a-Firefox">Firefox</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to Firefox</title>
38
[c1ae13c]39 <para>
40 <application>Firefox</application> is a stand-alone browser based on the
41 <application>Mozilla</application> codebase.
42 </para>
[b81991e1]43
[2e988363]44 &lfs111_checked;
[76ae9a2]45
[b81991e1]46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
[c1ae13c]49 <para>
50 Download (HTTP): <ulink url="&firefox-download-http;"/>
51 </para>
[b81991e1]52 </listitem>
53 <listitem>
[c1ae13c]54 <para>
55 Download (FTP): <ulink url="&firefox-download-ftp;"/>
56 </para>
[b81991e1]57 </listitem>
58 <listitem>
[c1ae13c]59 <para>
60 Download MD5 sum: &firefox-md5sum;
61 </para>
[b81991e1]62 </listitem>
63 <listitem>
[c1ae13c]64 <para>
65 Download size: &firefox-size;
66 </para>
[b81991e1]67 </listitem>
68 <listitem>
[c1ae13c]69 <para>
70 Estimated disk space required: &firefox-buildsize;
71 </para>
[b81991e1]72 </listitem>
73 <listitem>
[c1ae13c]74 <para>
75 Estimated build time: &firefox-time;
76 </para>
[b81991e1]77 </listitem>
78 </itemizedlist>
79
[e51466a]80<!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
[bf5fb94]81 <itemizedlist spacing="compact">
[8dacd5e]82 <listitem>
83 <para>
84 Required patch:
85 <ulink url="&patch-root;/firefox-&firefox-version;esr-gcc12_fix-1.patch"/>
86 </para>
87 </listitem>
[a05a69a4]88 <listitem>
89 <para>
90 Recommended patch:
91 <ulink url="&patch-root;/firefox-&firefox-version;esr-disable_rust_test-1.patch"/>
92 </para>
93 </listitem>
[e51466a]94 </itemizedlist>-->
[bf5fb94]95
[f06c692]96 <note>
[2eae5bc]97 <para>
98 The directory name is firefox-&firefox-version;
99 </para>
100
[f06c692]101 <para>
[8d0bc761]102 Extracting the tarball
103 will reset the permissions of the current directory to 0755 if you
[765c2a7]104 have permission to do that. If you do this in a directory where
[37bf7b1]105 the sticky bit is set, such
[dc9a18a]106 as <filename class="directory">/tmp</filename> it will end with error
107 messages:
108 </para>
109
110<literallayout>tar: .: Cannot utime: Operation not permitted
111tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
112tar: Exiting with failure status due to previous errors
113</literallayout>
114
115 <para>
116 This does finish with non-zero status, but it does
117 <emphasis>NOT</emphasis> mean there is a real problem.
118 Do not untar as the <systemitem class="username">root</systemitem> user
119 in a directory where the sticky bit is set - that will unset it.
[f06c692]120 </para>
[8d0bc761]121
122 <para>
[406e5ffe]123 As with other large packages which use C++ (or rust), the SBU times
[d5d7cd6]124 to build this vary more widely than you might expect. The build times
125 will increase significantly if your machine has to swap.
[8d0bc761]126 </para>
127
[d5d7cd6]128 <!-- commented, by 78.0 it seems to work reliably
[e628b536]129 <para>
130 The mach build system (Python scripts) can be somewhat unreliable: if
131 the build fails and reports an Error, it can still return a status of
132 success, causing a scripted build to try to install (which does not rerun
133 the build), fail during the preparations for installing, but still exit
134 with a status of success. Also, on occasion it may limit itself to only
135 running one set of jobs - that will make the build take about 3 times as
136 long as running with four sets of jobs.
[d5d7cd6]137 </para>-->
[e628b536]138
[8d0bc761]139 <para>
140 Although upstream prefer to use <application>PulseAudio</application>,
141 for the moment <application>Alsa</application> can still be used. Both
142 may need runtime configuration to get sound working.
143 </para>
[f06c692]144 </note>
145
[b81991e1]146 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
147
148 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]149 <para role="required">
[14de4227]150 <xref linkend="autoconf213"/>,
[44cd41e]151 <xref linkend="cbindgen"/>,
[703f0ce]152 <xref linkend="dbus-glib"/>,
[6292849]153 <xref linkend="gtk3"/>,
[326f830]154 <xref linkend="libnotify"/>,
[74762a5]155 <xref linkend="llvm"/> (clang, used for bindgen even if using gcc),
[fe5f563d]156 <xref linkend="nodejs"/>,
[be0bd12]157 <xref linkend="pulseaudio"/>
[81b3e7fd]158 (or
[9da4cc6f]159 <xref linkend="alsa-lib"/> if you edit the mozconfig;
[326f830]160 now deprecated by mozilla), in either case please read the
161 Configuration Information,
[d5d7cd6]162 <!-- rustc is required by cbindgen so not needed here
163 <xref linkend="rust"/>,-->
[693f28e1]164 <xref linkend="python3"/> (rebuilt after installing <xref linkend="sqlite"/>),
[d5d7cd6]165 <xref linkend="startup-notification"/>,
[59a6b63]166 <xref linkend="unzip"/>,
[479e03a]167 <xref linkend="yasm"/>, and
168 <xref linkend="zip"/>
[c1ae13c]169 </para>
170
[1555d3d]171 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]172 <para role="recommended">
[b84fe71]173 <xref linkend="icu"/>,
[0e37869]174 <xref linkend="libevent"/>,
[569d3364]175 <xref linkend="libvpx"/>,
[e399c12]176 <xref linkend="libwebp"/>,
[569d3364]177 <xref linkend="nasm"/>,
178 <xref linkend="nss"/>
[c1ae13c]179 </para>
[1555d3d]180
[0e37869]181 <note>
182 <para>
[b9f61df]183 If you don't install recommended dependencies, then internal copies of
184 those packages will be used. They might be tested to work, but they can
185 be out of date or contain security holes.
[0e37869]186 </para>
187 </note>
[8d0bc761]188
[b81991e1]189 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]190 <para role="optional">
[6c64623f]191 <xref linkend="curl"/>,
[c1ae13c]192 <xref linkend="doxygen"/>,
[babf0a0]193 <xref role="runtime" linkend="ffmpeg"/> (runtime, to play mov, mp3 or mp4 files),
[c6b192c]194 <!-- <phrase revision="sysv"><ulink url="https://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase> -->
[fe30eab]195 <xref linkend="liboauth"/>,
[b47d633]196 <!--<xref linkend="openjdk"/>, Not seen in logs -->
[566fcae]197 <xref linkend="valgrind"/>,
[6000a3e]198 <xref linkend="wget"/>,
[73b06df]199 <xref linkend="wireless_tools"/>,
[d5d7cd6]200 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>
[c1ae13c]201 </para>
202
203 <para condition="html" role="usernotes">
204 User Notes: <ulink url="&blfs-wiki;/firefox"/>
205 </para>
[b81991e1]206 </sect2>
207
208 <sect2 role="installation">
209 <title>Installation of Firefox</title>
210
[f72a04a]211 <para>
[b9f61df]212 The configuration of <application>Firefox</application> is accomplished
213 by creating a <filename>mozconfig</filename> file containing the desired
214 configuration options. A default <filename>mozconfig</filename> is
215 created below. To see the entire list of available configuration options
[888e303]216 (and an abbreviated description of some of them), issue <command>./mach
217 configure &amp;&amp; ./configure --help | less</command>. You may also
218 wish to review the entire file and uncomment any other desired options.
219 Create the file by issuing the following command:
[c1ae13c]220 </para>
[5a13c45]221
[0e37869]222<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]223<literal># If you have a multicore machine, all cores will be used by default.
224
[703f0ce]225# If you have installed (or will install) wireless-tools, and you wish
226# to use geolocation web services, comment out this line
[6d1bf0e]227ac_add_options --disable-necko-wifi
228
[ad5a97d]229# API Keys for geolocation APIs - necko-wifi (above) is required for MLS
230# Uncomment the following line if you wish to use Mozilla Location Service
231#ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
232
233# Uncomment the following line if you wish to use Google's geolocaton API
234# (needed for use with saved maps with Google Maps)
[9116137c]235#ac_add_options --with-google-location-service-api-keyfile=$PWD/google-key
[ad5a97d]236
[d5d7cd6]237# startup-notification is required since firefox-78
[495ebe07]238
[81b3e7fd]239# Uncomment the following option if you have not installed PulseAudio
240#ac_add_options --disable-pulseaudio
[3507f80]241# or uncomment this if you installed alsa-lib instead of PulseAudio
[81b3e7fd]242#ac_add_options --enable-alsa
[89cdb63d]243
[0e37869]244# Comment out following options if you have not installed
245# recommended dependencies:
[569d3364]246ac_add_options --with-system-icu
[0e37869]247ac_add_options --with-system-libevent
[569d3364]248ac_add_options --with-system-libvpx
[0e37869]249ac_add_options --with-system-nspr
250ac_add_options --with-system-nss
[569d3364]251ac_add_options --with-system-webp
[9a469bc]252
[e399c12]253# Do not specify the gold linker which is not the default. It will take
254# longer and use more disk space when debug symbols are disabled.
[9a469bc]255
[e399c12]256# libdavid (av1 decoder) requires nasm. Uncomment this if nasm
257# has not been installed.
258#ac_add_options --disable-av1
[0a561d8]259
[9a469bc]260# You cannot distribute the binary if you do this
261ac_add_options --enable-official-branding
[0e37869]262
[14de4227]263# Stripping is now enabled by default.
264# Uncomment these lines if you need to run a debugger:
265#ac_add_options --disable-strip
266#ac_add_options --disable-install-strip
267
[e399c12]268# Disabling debug symbols makes the build much smaller and a little
[ec54fa5b]269# faster. Comment this if you need to run a debugger. Note: This is
270# required for compilation on i686.
[e399c12]271ac_add_options --disable-debug-symbols
272
[c9677a35]273# The elf-hack is reported to cause failed installs (after successful builds)
274# on some machines. It is supposed to improve startup time and it shrinks
275# libxul.so by a few MB - comment this if you know your machine is not affected.
276ac_add_options --disable-elf-hack
277
[d5d7cd6]278# The BLFS editors recommend not changing anything below this line:
279ac_add_options --prefix=/usr
280ac_add_options --enable-application=browser
[5f5dcc2]281ac_add_options --disable-crashreporter
282ac_add_options --disable-updater
[57a8df2]283# enabling the tests will use a lot more space and significantly
284# increase the build time, for no obvious benefit.
[0e37869]285ac_add_options --disable-tests
286
[e399c12]287# The default level of optimization again produces a working build with gcc.
[8df543f]288ac_add_options --enable-optimize
[0e37869]289
[41f2e90]290ac_add_options --enable-system-ffi
[0e37869]291ac_add_options --enable-system-pixman
292
[a0ace670]293ac_add_options --with-system-jpeg
294ac_add_options --with-system-png
295ac_add_options --with-system-zlib
[aed37975]296
[e51466a]297# Using sandboxed wasm libraries has been moved to all builds instead
298# of only mozilla automation builds. It requires extra llvm packages
299# and was reported to seriously slow the build. Disable it.
300ac_add_options --without-wasm-sandboxed-libraries
301
[1b0a207]302# The following option unsets Telemetry Reporting. With the Addons Fiasco,
303# Mozilla was found to be collecting user's data, including saved passwords and
304# web form data, without users consent. Mozilla was also found shipping updates
305# to systems without the user's knowledge or permission.
306# As a result of this, use the following command to permanently disable
307# telemetry reporting in Firefox.
308unset MOZ_TELEMETRY_REPORTING
309
[4def8b6]310mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]311EOF</userinput></screen>
[b9b7146]312
[c1ae13c]313 <para>
314 Compile <application>Firefox</application> by issuing the following
315 commands:
316 </para>
[9572e88]317
[e51466a]318<!--<para>
[569d3364]319 First apply a patch which works around unexplained failures on some machines
[a05a69a4]320 (a message that a python check on libgkrust.a identified 1 networking
321 function, getsockname) in the rust static library.
322 </para>
323
324<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-disable_rust_test-1.patch</userinput></screen>
325
[8dacd5e]326 <para>
327 Now apply a patch which allows the build to complete when using gcc-12 or later.
328 </para>
329
[e51466a]330<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-gcc12_fix-1.patch</userinput></screen>-->
[8dacd5e]331
[c4e7ae2]332 <para>
333 A change in cbindgen-0.24.2 causes a symbol to now be output by
334 cbindgen, but it has already been defined in a header. This sed
335 prevents the build eventually failing:
336 </para>
337
338<screen><userinput>sed -i '/ROOT_CLIP_CHAIN/d' gfx/webrender_bindings/webrender_ffi.h</userinput></screen>
339
[e51466a]340<!-- applying this for 11.1: upstream haven't made their mind yet
341 https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
342 Still applies in 102.0, 32-bit build NOT tested for that. -->
343
[d468e96]344 <para>
345 If building on a 32 bit machine, the following sed works around
[0a0e996]346 an issue with an incompatible <quote>double</quote> type in one
[d468e96]347 header file:
348 </para>
349
350<screen><userinput>case "$(uname -m)" in
351 i?86) sed -e '/typedef[ ]*double/s/double/long double/' \
352 -i modules/fdlibm/src/math_private.h ;;
353esac</userinput></screen>
354
[ad5a97d]355 <para>
356 If the geolocation APIs are needed:
357 </para>
358
[e5c8de01]359 <note>
360 <para>
361 <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
362 The Google and Mozilla API Keys below are specific to LFS. If using
363 these instructions for another distro, or if you intend to distribute
364 binary copies of the software using these instructions, please obtain
365 your own keys following the instructions located at
366 <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
367 <ulink url="https://location.services.mozilla.com/api"/> respectively.
368 <!-- BLFS Devs, register an account at Google with your
369 @linuxfromscratch.org email address, and I'll make you an administrator
370 for the 'Google APIs for LFS' project (where the API and OAuth keys
371 were created for use in the book).-->
372 </para>
373 </note>
374
[ad5a97d]375<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
[5f18b7a8]376echo "613364a7-9418-4c86-bcee-57e32fd70c23" > mozilla-key</userinput></screen>
[ad5a97d]377
[5b0a978e]378 <note>
379
380 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
381 href="../../xincludes/mozshm.xml"/>
382
383 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
384 href="../../xincludes/mozmach.xml"/>
385
386 </note>
[57feeb5]387 <!--
[ec54fa5b]388 <para>
389 If you are building on i686, apply a fix to prevent Internal Compiler
390 Errors in GCC-7+:
[e399c12]391 </para>
392
[ec54fa5b]393<screen><userinput remap="pre">case $(uname -m) in
394 i?86) sed -i "562 s/mips64/i386/" gfx/skia/skia/third_party/skcms/src/Transform_inl.h ;;
395esac</userinput></screen>
[57feeb5]396 -->
[393517d3]397<!--<para>
[bf5fb94]398 Apply a patch to allow this to be compiled with <xref linkend="rust"/>:
399 </para>
400
[393517d3]401<screen><userinput remap="pre">patch -p1 -i ../firefox-&firefox-version;esr-rustc1470-1.patch</userinput></screen>-->
[29b0395]402
403 <para>
[8d70628]404 Now invoke the Python <command>mach</command> script to compile the package.
[29b0395]405 </para>
[e8d45427]406
[e51466a]407<screen><userinput>export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system &amp;&amp;
408export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
409./mach configure &amp;&amp;
[f0b7ae67]410./mach build</userinput></screen>
[3bdfc9fd]411
[0e37869]412 <para>
[57a8df2]413 The <filename>mozconfig</filename> above disables the tests because
414 they use a lot more time and disk space for no obvious benefit. If
[ecffcbbc]415 you have nevertheless enabled them, you can run the tests by executing
416 <command>./mach gtest</command>. This will require a network connection,
417 and to be run from within an Xorg session - there is a popup dialog
418 when it fails to connect to ALSA (that does not create a failed test).
419 One or two tests will fail. To see the details of the failure(s) you
420 will need to log the output from that command so that you can review it.
[0e37869]421 </para>
[01ce75f8]422
[495ebe07]423 <para>
[b9f61df]424 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]425 </para>
[5a13c45]426
[e51466a]427<screen role="root"><userinput>MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system ./mach install</userinput></screen>
[fe5f563d]428
[a5708ba]429 <para>
[8d70628]430 Empty the environment variables which were set above:
[a5708ba]431 </para>
432
[e51466a]433<screen><userinput>unset MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE MOZBUILD_STATE_PATH</userinput></screen>
[01ce75f8]434
[b81991e1]435 </sect2>
436
[361df3e]437 <sect2 role="commands">
438 <title>Command Explanations</title>
[7d09fcb9]439
[29b0395]440<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
441 href="../../xincludes/SIOCGSTAMP.xml"/>-->
[e8d45427]442
[fe5f563d]443 <para>
444 <command>export MOZBUILD_STATE_PATH=${PWD}/mozbuild</command>: The build
445 is now supposed to tell you that it intends to create <filename
446 class="directory">~/.mozbuild</filename>, and offer you an option to
447 press &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
448 build after specifying the directory. In practice, the message may not
449 appear until after &lt;ENTER&gt; is keyed, i.e. the build stalls.
450 </para>
451
452 <para>
453 That directory is used for a (probably random) telemetry identifier.
454 Creating this in the build directory, and deleting that after the
455 installation, prevents it being used. If you wish to participate in
[883e376]456 telemetry, export MOZBUILD_STATE_PATH to point to its default directory
457 and remove the entry from the <filename>mozconfig</filename>.
458 </para>
459
460 <para>
[e51466a]461 <command>MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system</command>: Use the
462 system python to create a virtual environment for <command>mach</command>
463 without downloading any python wheels.
[883e376]464 </para>
465
466 <para>
467 <command>./mach configure</command>: This validates the supplied
468 dependencies and the <filename>mozconfig</filename>.
[fe5f563d]469 </para>
470
[c1ae13c]471 <para>
[326f830]472 <option>./mach build --verbose</option>: Use this alternative if you
473 need details of which files are being compiled, together with any C or
[d5d7cd6]474 C++ flags being used. But do not add '--verbose' to the install command,
475 it is not accepted there.
[c1ae13c]476 </para>
477
[9a469bc]478 <para>
[fe5f563d]479 <option>./mach build -jN</option>: The build should, by default, use
[d5d7cd6]480 all the online CPU cores. If using all the cores causes the build to swap
481 because you have insufficient memory, using fewer cores can be faster.
[9a469bc]482 </para>
483
[c1ae13c]484 <para>
[e51466a]485 <parameter><envar>CC=gcc CXX=g++</envar></parameter>: BLFS used to
486 prefer to use gcc and g++ instead of upstream's defaults of the
487 <application>clang</application> programs. With the release of
488 gcc-12 the build takes longer with gcc and g++, primarily because
489 of extra warnings, and is bigger. Set these environment variables
490 <emphasis>before you run the configure script</emphasis>
491 if you wish to continue to use gcc, g++.
[c1ae13c]492 </para>
[fa1bc3e]493
[b81991e1]494 </sect2>
495
[88cec02]496 <sect2 role="configuration">
497 <title>Configuring Firefox</title>
498
[c1ae13c]499 <para>
500 If you use a desktop environment like <application>Gnome</application> or
[8dacd5e]501 <application>KDE</application> you may want to create a
[c1ae13c]502 <filename>firefox.desktop</filename> file so that
[8dacd5e]503 <application>Firefox</application> appears in the panel's menus.
504 As the &root; user:
[c1ae13c]505 </para>
[31de6e7]506
[eb5f847a]507<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[28909b72]508mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]509
[8dacd5e]510MIMETYPE="text/xml;text/mml;text/html;" &amp;&amp;
511MIMETYPE+="application/xhtml+xml;application/vnd.mozilla.xul+xml;" &amp;&amp;
512MIMETYPE+="x-scheme-handler/http;x-scheme-handler/https" &amp;&amp;
[28909b72]513
514cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; EOF &amp;&amp;
[fcd66369]515<literal>[Desktop Entry]
[31de6e7]516Encoding=UTF-8
[0e37869]517Name=Firefox Web Browser
518Comment=Browse the World Wide Web
519GenericName=Web Browser
520Exec=firefox %u
521Terminal=false
[31de6e7]522Type=Application
523Icon=firefox
[0e37869]524Categories=GNOME;GTK;Network;WebBrowser;
[28909b72]525MimeType=$MIMETYPE
[fcd66369]526StartupNotify=true</literal>
[31de6e7]527EOF
[74f73ede]528
[28909b72]529unset MIMETYPE &amp;&amp;
530
[888e303]531ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
[0e37869]532 /usr/share/pixmaps/firefox.png</userinput></screen>
533
[326f830]534 <sect3><title>Configuration Information</title>
535
536 <para>
537 The application settings for firefox are accessible by keying
538 <command>about:config</command> in the address bar.
539 </para>
540
541 <para>
[d5d7cd6]542 Occasionally, getting working sound in
543 <application>firefox</application> can be a problem. Although upstream
544 prefers pulseaudio,
[326f830]545 on balance using <application>Alsa</application> may be easier.
546 </para>
547
548 <para>
549 If you enabled <application>Alsa</application> for sound, you may need
550 to alter one variable to get working sound. If you run
551 <command>firefox</command> from a term and try to play something with
552 sound you might encounter error messages like:
553 </para>
554
555 <para>
556 <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
557 syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
558 </para>
559
560 <para>
561 That was on x86_64, on i686 the syscall number is 54. To allow this
562 syscall, in <command>about:config</command> change
563 <command>security.sandbox.content.syscall_whitelist</command> to 16
564 (or 54 if using i686).
565 </para>
566
567 <para>
568 If you use <command>pulseaudio</command> in a Desktop Environment, it
569 might already be started by that DE. But if it is not, although
[7ebe22e]570 firefox-57 managed to start it, firefox-58 did not. If you run
571 <command>firefox</command> from a term and this problem is present,
572 trying to play sound will
[326f830]573 encounter error messages warning <literal>Can't get cubeb
574 context!</literal>
575 </para>
576
577 <para>
578 The fix for this is to close firefox, start pulseaudio to check it
579 does start (if not, read the information on Configuring in <xref
580 linkend="pulseaudio"/>) and restart firefox to check it is working.
581 If it now works, add the following to your <filename>~/.xinitrc</filename>:
582<phrase revision="sysv">
583<literal>pulseaudio --verbose --log-target=syslog&amp;</literal></phrase>
584<phrase revision="systemd">
585<literal>pulseaudio --verbose --log-target=journald&amp;</literal></phrase>
586 (unfortunately, on some systems this does not work).
587 </para>
588
589 <para>
590 You may wish to use multiple profiles within firefox. To do that, invoke
591 firefox as <command>firefox --ProfileManager</command>. You can also
592 check which profile is currently in use from
593 <command>about:profiles</command>.
594 </para>
595
[d5d7cd6]596 <para>
597 Although WebRender (using the GPU for compositing) is not used by
598 default, it now appears to work well on supported hardware (ATI, Nvidia
599 and Intel GPUs with Mesa-18 or later. For an explanation, please see
600 <ulink
601 url="https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/">hacks.mozilla.org</ulink>.
602 The only downside seems to be that on a machine with limited RAM it might
603 use more RAM.
604 </para>
605
606 <para>
607 To check if WebRender is being used, look in about:support. In the Graphics
608 section Compositing will either show 'Basic' (i.e. not in use) or
609 'WebRender'. To enable it, go to about:config and change gfx.webrender.all
610 to True. You will need to restart firefox.
611 </para>
612
613 <para>
614 It may be useful to mention the processes from firefox which can appear in
615 <command>top</command> - as well as firefox itself, there may be multiple
616 Web Content processes, and now an RDD Process (Remote Data Decoder) which
617 appears when playing web videos encoded with av1 (libdav1d). If WebRender
618 has been enabled, a GPU Process will also appear when firefox has to
619 repaint (e.g. scrolling, opening a new tab, or playing a video).
620 </para>
621
[326f830]622 </sect3>
[88cec02]623 </sect2>
624
[b81991e1]625 <sect2 role="content">
626 <title>Contents</title>
627
628 <segmentedlist>
629 <segtitle>Installed Programs</segtitle>
630 <segtitle>Installed Libraries</segtitle>
[c5f005b]631 <segtitle>Installed Directory</segtitle>
[b81991e1]632
633 <seglistitem>
[0e37869]634 <seg>
635 firefox
636 </seg>
[c1ae13c]637 <seg>
638 Numerous libraries, browser components, plugins, extensions, and
[8d0bc761]639 helper modules installed in /usr/lib/firefox
[c1ae13c]640 </seg>
[7498751]641 <seg>
[c6c43396]642 /usr/lib/firefox
[7498751]643 </seg>
[b81991e1]644 </seglistitem>
645 </segmentedlist>
646
647 <variablelist>
648 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
649 <?dbfo list-presentation="list"?>
650 <?dbhtml list-presentation="table"?>
651
652 <varlistentry id="firefox-prog">
653 <term><command>firefox</command></term>
654 <listitem>
[c1ae13c]655 <para>
[7e1afc9]656 is a <application>GTK+-3</application> internet browser that uses
[4c24eb0a]657 the Mozilla Gecko rendering engine
[c1ae13c]658 </para>
[b81991e1]659 <indexterm zone="firefox firefox-prog">
660 <primary sortas="b-firefox">firefox</primary>
661 </indexterm>
662 </listitem>
663 </varlistentry>
[0e37869]664
[b81991e1]665 </variablelist>
[0e37869]666
[b81991e1]667 </sect2>
[0e37869]668
[4d37129]669</sect1>
Note: See TracBrowser for help on using the repository browser.