source: xsoft/graphweb/firefox.xml@ 5f729f8

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 5f729f8 was 5f729f8, checked in by Douglas R. Reno <renodr@…>, 20 months ago

Various typo fixes

  • 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 " ">
[689207c]9 <!ENTITY firefox-md5sum "962e19c22ed43a3c21f9dbfe2f7f5cdd">
10 <!ENTITY firefox-size "465 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 -->
[689207c]13 <!ENTITY firefox-buildsize "6.9 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 -->
[689207c]17 <!ENTITY firefox-time "23 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
[689207c]27<!-- indicate this is the ESR variant,
28 The point was that the 102.0 stable release differed slightly.
[b0540bce]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
[5f729f8]233# Uncomment the following line if you wish to use Google's geolocation API
[ad5a97d]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
[87fa171]239# Uncomment the following option if you have not installed PulseAudio and
[a72c6662]240# want to use alsa instead
[87fa171]241#ac_add_options --enable-audio-backends=alsa
[89cdb63d]242
[0e37869]243# Comment out following options if you have not installed
244# recommended dependencies:
[569d3364]245ac_add_options --with-system-icu
[0e37869]246ac_add_options --with-system-libevent
[569d3364]247ac_add_options --with-system-libvpx
[0e37869]248ac_add_options --with-system-nspr
249ac_add_options --with-system-nss
[569d3364]250ac_add_options --with-system-webp
[9a469bc]251
[02e19e03]252# Unlike with thunderbird, although using the gold linker can
253# save four megabytes in the installed file it does not make
254# the build faster.
[9a469bc]255
[e399c12]256# libdavid (av1 decoder) requires nasm. Uncomment this if nasm
[99c7372]257# has not been installed. Do not uncomment this if you have
258# ffmpeg-5 installed.
[e399c12]259#ac_add_options --disable-av1
[0a561d8]260
[9a469bc]261# You cannot distribute the binary if you do this
262ac_add_options --enable-official-branding
[0e37869]263
[14de4227]264# Stripping is now enabled by default.
265# Uncomment these lines if you need to run a debugger:
266#ac_add_options --disable-strip
267#ac_add_options --disable-install-strip
268
[e399c12]269# Disabling debug symbols makes the build much smaller and a little
[ec54fa5b]270# faster. Comment this if you need to run a debugger. Note: This is
271# required for compilation on i686.
[e399c12]272ac_add_options --disable-debug-symbols
273
[c9677a35]274# The elf-hack is reported to cause failed installs (after successful builds)
275# on some machines. It is supposed to improve startup time and it shrinks
276# libxul.so by a few MB - comment this if you know your machine is not affected.
277ac_add_options --disable-elf-hack
278
[d5d7cd6]279# The BLFS editors recommend not changing anything below this line:
280ac_add_options --prefix=/usr
281ac_add_options --enable-application=browser
[5f5dcc2]282ac_add_options --disable-crashreporter
283ac_add_options --disable-updater
[57a8df2]284# enabling the tests will use a lot more space and significantly
285# increase the build time, for no obvious benefit.
[0e37869]286ac_add_options --disable-tests
287
[e399c12]288# The default level of optimization again produces a working build with gcc.
[8df543f]289ac_add_options --enable-optimize
[0e37869]290
[41f2e90]291ac_add_options --enable-system-ffi
[0e37869]292ac_add_options --enable-system-pixman
293
[a0ace670]294ac_add_options --with-system-jpeg
295ac_add_options --with-system-png
296ac_add_options --with-system-zlib
[aed37975]297
[e51466a]298# Using sandboxed wasm libraries has been moved to all builds instead
299# of only mozilla automation builds. It requires extra llvm packages
300# and was reported to seriously slow the build. Disable it.
301ac_add_options --without-wasm-sandboxed-libraries
302
[1b0a207]303# The following option unsets Telemetry Reporting. With the Addons Fiasco,
304# Mozilla was found to be collecting user's data, including saved passwords and
305# web form data, without users consent. Mozilla was also found shipping updates
306# to systems without the user's knowledge or permission.
307# As a result of this, use the following command to permanently disable
308# telemetry reporting in Firefox.
309unset MOZ_TELEMETRY_REPORTING
310
[4def8b6]311mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]312EOF</userinput></screen>
[b9b7146]313
[c1ae13c]314 <para>
315 Compile <application>Firefox</application> by issuing the following
316 commands:
317 </para>
[9572e88]318
[e51466a]319<!--<para>
[569d3364]320 First apply a patch which works around unexplained failures on some machines
[a05a69a4]321 (a message that a python check on libgkrust.a identified 1 networking
322 function, getsockname) in the rust static library.
323 </para>
324
325<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-disable_rust_test-1.patch</userinput></screen>
326
[8dacd5e]327 <para>
328 Now apply a patch which allows the build to complete when using gcc-12 or later.
329 </para>
330
[e51466a]331<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-gcc12_fix-1.patch</userinput></screen>-->
[8dacd5e]332
[c4e7ae2]333 <para>
334 A change in cbindgen-0.24.2 causes a symbol to now be output by
335 cbindgen, but it has already been defined in a header. This sed
336 prevents the build eventually failing:
337 </para>
338
339<screen><userinput>sed -i '/ROOT_CLIP_CHAIN/d' gfx/webrender_bindings/webrender_ffi.h</userinput></screen>
340
[e51466a]341<!-- applying this for 11.1: upstream haven't made their mind yet
342 https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
343 Still applies in 102.0, 32-bit build NOT tested for that. -->
344
[d468e96]345 <para>
346 If building on a 32 bit machine, the following sed works around
[0a0e996]347 an issue with an incompatible <quote>double</quote> type in one
[d468e96]348 header file:
349 </para>
350
351<screen><userinput>case "$(uname -m)" in
352 i?86) sed -e '/typedef[ ]*double/s/double/long double/' \
353 -i modules/fdlibm/src/math_private.h ;;
354esac</userinput></screen>
355
[ad5a97d]356 <para>
357 If the geolocation APIs are needed:
358 </para>
359
[e5c8de01]360 <note>
361 <para>
362 <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
363 The Google and Mozilla API Keys below are specific to LFS. If using
364 these instructions for another distro, or if you intend to distribute
365 binary copies of the software using these instructions, please obtain
366 your own keys following the instructions located at
367 <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
368 <ulink url="https://location.services.mozilla.com/api"/> respectively.
369 <!-- BLFS Devs, register an account at Google with your
370 @linuxfromscratch.org email address, and I'll make you an administrator
371 for the 'Google APIs for LFS' project (where the API and OAuth keys
372 were created for use in the book).-->
373 </para>
374 </note>
375
[ad5a97d]376<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
[5f18b7a8]377echo "613364a7-9418-4c86-bcee-57e32fd70c23" > mozilla-key</userinput></screen>
[ad5a97d]378
[5b0a978e]379 <note>
380
381 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
382 href="../../xincludes/mozshm.xml"/>
383
384 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
385 href="../../xincludes/mozmach.xml"/>
386
387 </note>
[57feeb5]388 <!--
[ec54fa5b]389 <para>
390 If you are building on i686, apply a fix to prevent Internal Compiler
391 Errors in GCC-7+:
[e399c12]392 </para>
393
[ec54fa5b]394<screen><userinput remap="pre">case $(uname -m) in
395 i?86) sed -i "562 s/mips64/i386/" gfx/skia/skia/third_party/skcms/src/Transform_inl.h ;;
396esac</userinput></screen>
[57feeb5]397 -->
[393517d3]398<!--<para>
[bf5fb94]399 Apply a patch to allow this to be compiled with <xref linkend="rust"/>:
400 </para>
401
[393517d3]402<screen><userinput remap="pre">patch -p1 -i ../firefox-&firefox-version;esr-rustc1470-1.patch</userinput></screen>-->
[29b0395]403
404 <para>
[8d70628]405 Now invoke the Python <command>mach</command> script to compile the package.
[29b0395]406 </para>
[e8d45427]407
[e51466a]408<screen><userinput>export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system &amp;&amp;
409export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
410./mach configure &amp;&amp;
[f0b7ae67]411./mach build</userinput></screen>
[3bdfc9fd]412
[0e37869]413 <para>
[57a8df2]414 The <filename>mozconfig</filename> above disables the tests because
415 they use a lot more time and disk space for no obvious benefit. If
[ecffcbbc]416 you have nevertheless enabled them, you can run the tests by executing
417 <command>./mach gtest</command>. This will require a network connection,
418 and to be run from within an Xorg session - there is a popup dialog
419 when it fails to connect to ALSA (that does not create a failed test).
420 One or two tests will fail. To see the details of the failure(s) you
421 will need to log the output from that command so that you can review it.
[0e37869]422 </para>
[01ce75f8]423
[495ebe07]424 <para>
[b9f61df]425 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]426 </para>
[5a13c45]427
[e51466a]428<screen role="root"><userinput>MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system ./mach install</userinput></screen>
[fe5f563d]429
[a5708ba]430 <para>
[8d70628]431 Empty the environment variables which were set above:
[a5708ba]432 </para>
433
[e51466a]434<screen><userinput>unset MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE MOZBUILD_STATE_PATH</userinput></screen>
[01ce75f8]435
[b81991e1]436 </sect2>
437
[361df3e]438 <sect2 role="commands">
439 <title>Command Explanations</title>
[7d09fcb9]440
[29b0395]441<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
442 href="../../xincludes/SIOCGSTAMP.xml"/>-->
[e8d45427]443
[fe5f563d]444 <para>
445 <command>export MOZBUILD_STATE_PATH=${PWD}/mozbuild</command>: The build
446 is now supposed to tell you that it intends to create <filename
447 class="directory">~/.mozbuild</filename>, and offer you an option to
448 press &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
449 build after specifying the directory. In practice, the message may not
450 appear until after &lt;ENTER&gt; is keyed, i.e. the build stalls.
451 </para>
452
453 <para>
454 That directory is used for a (probably random) telemetry identifier.
455 Creating this in the build directory, and deleting that after the
456 installation, prevents it being used. If you wish to participate in
[883e376]457 telemetry, export MOZBUILD_STATE_PATH to point to its default directory
458 and remove the entry from the <filename>mozconfig</filename>.
459 </para>
460
461 <para>
[e51466a]462 <command>MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system</command>: Use the
463 system python to create a virtual environment for <command>mach</command>
464 without downloading any python wheels.
[883e376]465 </para>
466
467 <para>
468 <command>./mach configure</command>: This validates the supplied
469 dependencies and the <filename>mozconfig</filename>.
[fe5f563d]470 </para>
471
[c1ae13c]472 <para>
[326f830]473 <option>./mach build --verbose</option>: Use this alternative if you
474 need details of which files are being compiled, together with any C or
[d5d7cd6]475 C++ flags being used. But do not add '--verbose' to the install command,
476 it is not accepted there.
[c1ae13c]477 </para>
478
[9a469bc]479 <para>
[fe5f563d]480 <option>./mach build -jN</option>: The build should, by default, use
[d5d7cd6]481 all the online CPU cores. If using all the cores causes the build to swap
482 because you have insufficient memory, using fewer cores can be faster.
[9a469bc]483 </para>
484
[c1ae13c]485 <para>
[e51466a]486 <parameter><envar>CC=gcc CXX=g++</envar></parameter>: BLFS used to
487 prefer to use gcc and g++ instead of upstream's defaults of the
488 <application>clang</application> programs. With the release of
489 gcc-12 the build takes longer with gcc and g++, primarily because
490 of extra warnings, and is bigger. Set these environment variables
491 <emphasis>before you run the configure script</emphasis>
492 if you wish to continue to use gcc, g++.
[c1ae13c]493 </para>
[fa1bc3e]494
[b81991e1]495 </sect2>
496
[88cec02]497 <sect2 role="configuration">
498 <title>Configuring Firefox</title>
499
[c1ae13c]500 <para>
501 If you use a desktop environment like <application>Gnome</application> or
[8dacd5e]502 <application>KDE</application> you may want to create a
[c1ae13c]503 <filename>firefox.desktop</filename> file so that
[8dacd5e]504 <application>Firefox</application> appears in the panel's menus.
505 As the &root; user:
[c1ae13c]506 </para>
[31de6e7]507
[eb5f847a]508<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[28909b72]509mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]510
[8dacd5e]511MIMETYPE="text/xml;text/mml;text/html;" &amp;&amp;
512MIMETYPE+="application/xhtml+xml;application/vnd.mozilla.xul+xml;" &amp;&amp;
513MIMETYPE+="x-scheme-handler/http;x-scheme-handler/https" &amp;&amp;
[28909b72]514
515cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; EOF &amp;&amp;
[fcd66369]516<literal>[Desktop Entry]
[31de6e7]517Encoding=UTF-8
[0e37869]518Name=Firefox Web Browser
519Comment=Browse the World Wide Web
520GenericName=Web Browser
521Exec=firefox %u
522Terminal=false
[31de6e7]523Type=Application
524Icon=firefox
[0e37869]525Categories=GNOME;GTK;Network;WebBrowser;
[28909b72]526MimeType=$MIMETYPE
[fcd66369]527StartupNotify=true</literal>
[31de6e7]528EOF
[74f73ede]529
[28909b72]530unset MIMETYPE &amp;&amp;
531
[888e303]532ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
[0e37869]533 /usr/share/pixmaps/firefox.png</userinput></screen>
534
[326f830]535 <sect3><title>Configuration Information</title>
536
537 <para>
538 The application settings for firefox are accessible by keying
539 <command>about:config</command> in the address bar.
540 </para>
541
542 <para>
[d5d7cd6]543 Occasionally, getting working sound in
544 <application>firefox</application> can be a problem. Although upstream
545 prefers pulseaudio,
[326f830]546 on balance using <application>Alsa</application> may be easier.
547 </para>
548
549 <para>
550 If you enabled <application>Alsa</application> for sound, you may need
551 to alter one variable to get working sound. If you run
552 <command>firefox</command> from a term and try to play something with
553 sound you might encounter error messages like:
554 </para>
555
556 <para>
557 <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
558 syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
559 </para>
560
561 <para>
562 That was on x86_64, on i686 the syscall number is 54. To allow this
563 syscall, in <command>about:config</command> change
564 <command>security.sandbox.content.syscall_whitelist</command> to 16
565 (or 54 if using i686).
566 </para>
567
568 <para>
569 If you use <command>pulseaudio</command> in a Desktop Environment, it
570 might already be started by that DE. But if it is not, although
[7ebe22e]571 firefox-57 managed to start it, firefox-58 did not. If you run
572 <command>firefox</command> from a term and this problem is present,
573 trying to play sound will
[326f830]574 encounter error messages warning <literal>Can't get cubeb
575 context!</literal>
576 </para>
577
578 <para>
579 The fix for this is to close firefox, start pulseaudio to check it
580 does start (if not, read the information on Configuring in <xref
581 linkend="pulseaudio"/>) and restart firefox to check it is working.
582 If it now works, add the following to your <filename>~/.xinitrc</filename>:
583<phrase revision="sysv">
584<literal>pulseaudio --verbose --log-target=syslog&amp;</literal></phrase>
585<phrase revision="systemd">
586<literal>pulseaudio --verbose --log-target=journald&amp;</literal></phrase>
587 (unfortunately, on some systems this does not work).
588 </para>
589
590 <para>
591 You may wish to use multiple profiles within firefox. To do that, invoke
592 firefox as <command>firefox --ProfileManager</command>. You can also
593 check which profile is currently in use from
594 <command>about:profiles</command>.
595 </para>
596
[d5d7cd6]597 <para>
598 Although WebRender (using the GPU for compositing) is not used by
599 default, it now appears to work well on supported hardware (ATI, Nvidia
600 and Intel GPUs with Mesa-18 or later. For an explanation, please see
601 <ulink
602 url="https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/">hacks.mozilla.org</ulink>.
603 The only downside seems to be that on a machine with limited RAM it might
604 use more RAM.
605 </para>
606
607 <para>
608 To check if WebRender is being used, look in about:support. In the Graphics
609 section Compositing will either show 'Basic' (i.e. not in use) or
610 'WebRender'. To enable it, go to about:config and change gfx.webrender.all
611 to True. You will need to restart firefox.
612 </para>
613
614 <para>
615 It may be useful to mention the processes from firefox which can appear in
616 <command>top</command> - as well as firefox itself, there may be multiple
617 Web Content processes, and now an RDD Process (Remote Data Decoder) which
618 appears when playing web videos encoded with av1 (libdav1d). If WebRender
619 has been enabled, a GPU Process will also appear when firefox has to
620 repaint (e.g. scrolling, opening a new tab, or playing a video).
621 </para>
622
[326f830]623 </sect3>
[88cec02]624 </sect2>
625
[b81991e1]626 <sect2 role="content">
627 <title>Contents</title>
628
629 <segmentedlist>
630 <segtitle>Installed Programs</segtitle>
631 <segtitle>Installed Libraries</segtitle>
[c5f005b]632 <segtitle>Installed Directory</segtitle>
[b81991e1]633
634 <seglistitem>
[0e37869]635 <seg>
636 firefox
637 </seg>
[c1ae13c]638 <seg>
639 Numerous libraries, browser components, plugins, extensions, and
[8d0bc761]640 helper modules installed in /usr/lib/firefox
[c1ae13c]641 </seg>
[7498751]642 <seg>
[87fa171]643 /usr/lib/firefox
[7498751]644 </seg>
[b81991e1]645 </seglistitem>
646 </segmentedlist>
647
648 <variablelist>
649 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
650 <?dbfo list-presentation="list"?>
651 <?dbhtml list-presentation="table"?>
652
653 <varlistentry id="firefox-prog">
654 <term><command>firefox</command></term>
655 <listitem>
[c1ae13c]656 <para>
[7e1afc9]657 is a <application>GTK+-3</application> internet browser that uses
[4c24eb0a]658 the Mozilla Gecko rendering engine
[c1ae13c]659 </para>
[b81991e1]660 <indexterm zone="firefox firefox-prog">
661 <primary sortas="b-firefox">firefox</primary>
662 </indexterm>
663 </listitem>
664 </varlistentry>
[0e37869]665
[b81991e1]666 </variablelist>
[0e37869]667
[b81991e1]668 </sect2>
[0e37869]669
[4d37129]670</sect1>
Note: See TracBrowser for help on using the repository browser.