source: xsoft/graphweb/firefox.xml@ 949aa82

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 949aa82 was 248d350, checked in by Xi Ruoyao <xry111@…>, 8 months ago

firefox, thunderbird: Minor alignment fix

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