source: xsoft/graphweb/firefox.xml@ 44cf4d8

10.0 10.1 11.0 11.1 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 44cf4d8 was 44cf4d8, checked in by Ken Moffat <ken@…>, 4 years ago

firefox-78.0.2esr

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23378 af4574ff-66df-0310-9fd7-8a98e5e911e0

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