source: xsoft/graphweb/firefox.xml@ cbfd207

lazarus trunk
Last change on this file since cbfd207 was cbfd207, checked in by Xi Ruoyao <xry111@…>, 2 months ago

firefox, thunderbird: Remove several lines of ARM code to work around FTBFS with Rustc >= 1.78.0

These lines are:

#![cfg_attr(feature = "neon", feature(stdsimd))]
#![cfg_attr(

feature = "neon",
feature(arm_target_feature, raw_ref_op)

)]

The upstream has committed the fix but as these lines are only for ARM,
we can simply remove them.

In SeaMonkey the qcms code base is still C++ so this does not apply.

Link: https://bugzilla.mozilla.org/show_bug.cgi?id=1882291

  • Property mode set to 100644
File size: 25.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 "150ac3fe6200f01879148ef32c5dd16f">
10 <!ENTITY firefox-size "484 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 "5.7 GB (199 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 "12 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 &lfs121_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="python311"/> (built 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 configuration of <application>Firefox</application> is accomplished
196 by creating a <filename>mozconfig</filename> file containing the desired
197 configuration options. A default <filename>mozconfig</filename> is
198 created below. To see the entire list of available configuration options
199 (and an abbreviated description of some of them), issue <command>./mach
200 configure -- --help | less</command>. You may also
201 wish to review the entire file and uncomment any other desired options.
202 Create the file by issuing the following command:
203 </para>
204
205<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
206<literal># If you have a multicore machine, all cores will be used by default.
207
208# If you have installed (or will install) wireless-tools, and you wish
209# to use geolocation web services, comment out this line
210ac_add_options --disable-necko-wifi
211
212# Uncomment the following line if you wish to use Google's Geolocation API
213# (needed for use with saved maps with Google Maps)
214#ac_add_options --with-google-location-service-api-keyfile=$PWD/google-key
215
216# startup-notification is required since firefox-78
217
218# Uncomment the following option if you have not installed PulseAudio and
219# want to use alsa instead
220#ac_add_options --enable-audio-backends=alsa
221
222# Comment out following options if you have not installed
223# recommended dependencies:
224ac_add_options --with-system-icu
225ac_add_options --with-system-libevent
226ac_add_options --with-system-libvpx
227ac_add_options --with-system-nspr
228ac_add_options --with-system-nss
229ac_add_options --with-system-webp
230
231# Unlike with thunderbird, although using the gold linker can
232# save four megabytes in the installed file it does not make
233# the build faster.
234
235# The libdav1d library (av1 decoder) requires nasm. Uncomment this
236# if nasm has not been installed. Do not uncomment this if you have
237# ffmpeg installed.
238#ac_add_options --disable-av1
239
240# You cannot distribute the binary if you do this.
241ac_add_options --enable-official-branding
242
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
248# Disabling debug symbols makes the build much smaller and a little
249# faster. Comment this if you need to run a debugger.
250ac_add_options --disable-debug-symbols
251<!-- With Firefox ESR 128 we'd replace the following part with
252"- -enable-elf-hack=relr", or remove it if relr becomes the default. -->
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. With recent Binutils releases the linker already
256# supports a much safer and generic way for this.
257ac_add_options --disable-elf-hack
258export LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs"
259
260# The BLFS editors recommend not changing anything below this line:
261ac_add_options --prefix=/usr
262ac_add_options --enable-application=browser
263ac_add_options --disable-crashreporter
264ac_add_options --disable-updater
265
266# Enabling the tests will use a lot more space and significantly
267# increase the build time, for no obvious benefit.
268ac_add_options --disable-tests
269
270# The SIMD code relies on the unmaintained packed_simd crate which
271# fails to build with Rustc >= 1.78.0. We may re-enable it once
272# Mozilla port the code to use std::simd and std::simd is stablized.
273ac_add_options --disable-rust-simd
274
275ac_add_options --enable-system-ffi
276ac_add_options --enable-system-pixman
277
278ac_add_options --with-system-jpeg
279ac_add_options --with-system-png
280ac_add_options --with-system-zlib
281
282# Sandboxing works well on x86_64 but might cause issues on other
283# platforms. If not on x86_64, e.g. i686, it is recommended to
284# uncomment the following switch.
285#ac_add_options --disable-sandbox
286
287# Using sandboxed wasm libraries has been moved to all builds instead
288# of only mozilla automation builds. It requires extra llvm packages
289# and was reported to seriously slow the build. Disable it.
290ac_add_options --without-wasm-sandboxed-libraries
291
292# The following option unsets Telemetry Reporting. With the Addons Fiasco,
293# Mozilla was found to be collecting user's data, including saved passwords and
294# web form data, without users consent. Mozilla was also found shipping updates
295# to systems without the user's knowledge or permission.
296# As a result of this, use the following command to permanently disable
297# telemetry reporting in Firefox.
298unset MOZ_TELEMETRY_REPORTING
299
300mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
301EOF</userinput></screen>
302
303 <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=1859752
304 https://hg.mozilla.org/try/rev/d5f3b0c4f08a -->
305 <para>
306 If building with system ICU, adapt the line break mapping for ICU
307 74 or later. This construct adds five entries to a c++ array.
308 </para>
309
310<screen><userinput>for i in {43..47}; do
311 sed -i '/ZWJ/s/}/,CLASS_CHARACTER&amp;/' intl/lwbrk/LineBreaker.cpp
312done</userinput></screen>
313
314 <para>
315 Compile <application>Firefox</application> by issuing the following
316 commands:
317 </para>
318<!-- Not needed with clang. Upstream bug at
319 https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
320
321 <para>
322 If building on a 32 bit machine, the following sed works around
323 an issue with an incompatible <quote>double</quote> type in one
324 header file:
325 </para>
326
327<screen><userinput>case "$(uname -m)" in
328 i?86) sed -e '/typedef[ ]*double/s/double/long double/' \
329 -i modules/fdlibm/src/math_private.h ;;
330esac</userinput></screen>
331-->
332 <para>
333 If the geolocation APIs are needed:
334 </para>
335
336 <note>
337 <para>
338 <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
339 The Google API Key below is specific to LFS. If using these
340 instructions for another distro, or if you intend to distribute
341 binary copies of the software using these instructions, please obtain
342 your own key following the instructions located at
343 <ulink url="https://www.chromium.org/developers/how-tos/api-keys"/>.
344 <!-- BLFS Devs, register an account at Google with your
345 @linuxfromscratch.org email address, and I'll make you an administrator
346 for the 'Google APIs for LFS' project (where the API and OAuth keys
347 were created for use in the book).-->
348 </para>
349 </note>
350
351<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key</userinput></screen>
352
353 <note>
354 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
355 href="../../xincludes/mozshm.xml"/>
356 </note>
357
358<!--<para>
359 Fix building Firefox with Clang 16 or C++ headers from GCC 13.
360 And, work around a build failure with Rustc-1.70.0:
361 </para>
362
363<screen><userinput remap="pre">patch -Np1 -i ../firefox-&firefox-version;-consolidated-1.patch</userinput></screen>
364
365 <para>
366 Apply the following patch so that firefox is able to play H.264 videos:
367 </para>
368
369<screen><userinput remap="pre">patch -Np1 -i ../firefox-&firefox-version;-ffmpeg_6-1.patch</userinput></screen>-->
370
371 <!-- https://github.com/rust-lang/rust-bindgen/pull/2689 -->
372 <para>
373 Adapt the shipped <application>rust-bindgen</application> copy for
374 LLVM-18 and later, and tell <command>cargo</command> we've modified
375 the code of <application>rust-bindgen</application> so the checksum
376 verification of this crate should be skipped:
377 </para>
378
379 <screen><userinput>sed -e "/match cursor.kind()/a \
380 CXCursor_LinkageSpec => return Err(ParseError::Recurse)," \
381 -i third_party/rust/bindgen/ir/item.rs &amp;&amp;
382
383cat &gt;&gt; Cargo.toml &lt;&lt; EOF &amp;&amp;
384<literal>[patch.crates-io.bindgen_0_64_0]
385package = "bindgen"
386version = "0.64.0"
387path = "third_party/rust/bindgen"</literal>
388EOF
389
390sed -r '/name = "bindgen"/,+5 s/^source|^checksum/#&amp;/' \
391 -i Cargo.lock</userinput></screen>
392
393 <!-- https://hg.mozilla.org/mozilla-central/rev/ba6abbd36b49 -->
394 <para>
395 Adapt the WebRTC code to use 64-bit timestamp to fix a build
396 failure with Clang-18 and later:
397 </para>
398
399 <screen><userinput>sed 's/uint32_t timestamp/uint64_t timestamp/' \
400 -i dom/media/gmp-plugin-openh264/gmp-fake-openh264.cpp \
401 dom/media/gtest/TestGMPRemoveAndDelete.cpp \
402 dom/media/webrtc/libwebrtcglue/WebrtcGmpVideoCodec.cpp &amp;&amp;
403
404sed '/mInputImageMap/s/uint32_t/uint64_t/' \
405 -i dom/media/webrtc/libwebrtcglue/WebrtcGmpVideoCodec.h</userinput></screen>
406
407 <para>
408 Remove several lines of Rust code only useful for ARM and failing to
409 compile with Rustc-1.78.0 or newer:
410 </para>
411
412 <screen><userinput>sed '/cfg_attr/,/)]/d' -i gfx/qcms/src/lib.rs</userinput></screen>
413
414 <para>
415 Now invoke the Python <command>mach</command> script to compile the package.
416 </para>
417
418<screen><userinput>export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none &amp;&amp;
419export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
420export PYTHON311=/opt/python3.11/bin/python3.11 &amp;&amp;
421$PYTHON311 ./mach build</userinput></screen>
422
423 <para>
424 The <filename>mozconfig</filename> above disables the tests because
425 they use a lot more time and disk space for no obvious benefit. If
426 you have nevertheless enabled them, you can run the tests by executing
427 <command>./mach gtest</command>. This will require a network connection,
428 and to be run from within an Xorg session - there is a popup dialog
429 when it fails to connect to ALSA (that does not create a failed test).
430 One or two tests will fail. To see the details of the failure(s) you
431 will need to log the output from that command so that you can review it.
432 </para>
433
434 <para>
435 Now, as the <systemitem class="username">root</systemitem> user:
436 </para>
437
438<screen role="root"><userinput>export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none &amp;&amp;
439export PYTHON311=/opt/python3.11/bin/python3.11 &amp;&amp;
440$PYTHON311 ./mach install</userinput></screen>
441
442 <para>
443 Empty the environment variables which were set above:
444 </para>
445
446<screen><userinput>unset MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE
447unset MOZBUILD_STATE_PATH
448unset PYTHON311</userinput></screen>
449
450 </sect2>
451
452 <sect2 role="commands">
453 <title>Command Explanations</title>
454
455 <para>
456 <command>export MOZBUILD_STATE_PATH=${PWD}/mozbuild</command>: The build
457 tells you that it intends to create <filename
458 class="directory">~/.mozbuild</filename>, and offer you an option to
459 press &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
460 build after specifying the directory. In practice, the message may not
461 appear until after &lt;ENTER&gt; is keyed, i.e. the build stalls.
462 </para>
463
464 <para>
465 That directory is used for a (probably random) telemetry identifier.
466 Creating this directory within the build directory and deleting it after the
467 installation prevents it being used.
468 </para>
469
470 <para>
471 <command>MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none</command>: Use the
472 system python to create a virtual environment for <command>mach</command>
473 without downloading any python wheels and without using the system python modules.
474 This prevents version mismatches between system modules and bundled ones.
475 </para>
476
477<!--
478 <para>
479 <command>./mach configure</command>: This validates the supplied
480 dependencies and the <filename>mozconfig</filename>.
481 </para>
482-->
483
484 <para>
485 <option>./mach build --verbose</option>: Use this alternative if you
486 need details of which files are being compiled, together with any C or
487 C++ flags being used. But do not add '--verbose' to the install command
488 since it is not accepted there.
489 </para>
490
491 <para>
492 <option>./mach build -jN</option>: The build should, by default, use
493 all the online CPU cores. If using all the cores causes the build to swap
494 because you have insufficient memory, using fewer cores can be faster.
495 </para>
496
497 <para>
498 <option><envar>CC=gcc CXX=g++</envar></option>: BLFS used to
499 prefer to use gcc and g++ instead of upstream's defaults of the
500 <application>clang</application> programs. With the release of
501 gcc-12 the build takes longer with gcc and g++, primarily because
502 of extra warnings, and is bigger. Set these environment variables
503 <emphasis>before you run the configure script</emphasis>
504 if you wish to continue to use gcc, g++. Building
505 with GCC on i?86 is currently broken.
506 </para>
507
508 </sect2>
509
510 <sect2 role="configuration">
511 <title>Configuring Firefox</title>
512
513 <para>
514 If you use a desktop environment like <application>Gnome</application> or
515 <application>KDE</application> you may want to create a
516 <filename>firefox.desktop</filename> file so that
517 <application>Firefox</application> appears in the panel's menus.
518 As the &root; user:
519 </para>
520
521<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
522mkdir -pv /usr/share/pixmaps &amp;&amp;
523
524MIMETYPE="text/xml;text/mml;text/html;" &amp;&amp;
525MIMETYPE+="application/xhtml+xml;application/vnd.mozilla.xul+xml;" &amp;&amp;
526MIMETYPE+="x-scheme-handler/http;x-scheme-handler/https" &amp;&amp;
527
528cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; EOF &amp;&amp;
529<literal>[Desktop Entry]
530Encoding=UTF-8
531Name=Firefox Web Browser
532Comment=Browse the World Wide Web
533GenericName=Web Browser
534Exec=firefox %u
535Terminal=false
536Type=Application
537Icon=firefox
538Categories=GNOME;GTK;Network;WebBrowser;
539MimeType=$MIMETYPE
540StartupNotify=true</literal>
541EOF
542
543unset MIMETYPE &amp;&amp;
544
545ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
546 /usr/share/pixmaps/firefox.png</userinput></screen>
547
548 <sect3><title>Configuration Information</title>
549
550 <para>
551 The application settings for firefox are accessible by keying
552 <command>about:config</command> in the address bar.
553 </para>
554
555 <para>
556 Occasionally, getting working sound in
557 <application>firefox</application> can be a problem. Although upstream
558 prefers pulseaudio,
559 on balance using <application>Alsa</application> may be easier.
560 </para>
561
562 <para>
563 If you enabled <application>Alsa</application> for sound, you may need
564 to alter one variable to get working sound. If you run
565 <command>firefox</command> from a terminal and try to play something
566 with sound you might encounter error messages like:
567 </para>
568
569 <para>
570 <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
571 syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
572 </para>
573
574 <para>
575 That was on x86_64, on i686 the syscall number is 54. To allow this
576 syscall, in <command>about:config</command> change
577 <command>security.sandbox.content.syscall_whitelist</command> to 16
578 (or 54 if using i686).
579 </para>
580
581 <para>
582 If you use <command>pulseaudio</command> in a Desktop Environment, it
583 might already be started by that DE. But if it is not, although
584 firefox-57 managed to start it, firefox-58 did not. If you run
585 <command>firefox</command> from a terminal and this problem is present,
586 trying to play sound will
587 encounter error messages warning <literal>Can't get cubeb
588 context!</literal>
589 </para>
590
591 <para>
592 The fix for this is to close firefox, start pulseaudio to check it
593 does start (if not, read the information on Configuring in <xref
594 linkend="pulseaudio"/>) and restart firefox to check it is working.
595 If it now works, add the following to your <filename>~/.xinitrc</filename>:
596<phrase revision="sysv">
597<literal>pulseaudio --verbose --log-target=syslog&amp;</literal></phrase>
598<phrase revision="systemd">
599<literal>pulseaudio --verbose --log-target=journald&amp;</literal></phrase>
600 (unfortunately, on some systems this does not work).
601 </para>
602
603 <para>
604 You may wish to use multiple profiles within firefox. To do that, invoke
605 firefox as <command>firefox --ProfileManager</command>. You can also
606 check which profile is currently in use from
607 <command>about:profiles</command>.
608 </para>
609
610 <para>
611 Although WebRender (using the GPU for compositing) is not used by
612 default, it now appears to work well on supported hardware (ATI, Nvidia
613 and Intel GPUs with Mesa-18 or later). For an explanation, please see
614 <ulink
615 url="https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/">hacks.mozilla.org</ulink>.
616 The only downside seems to be that on a machine with limited RAM it might
617 use more RAM.
618 </para>
619
620 <para>
621 To check if WebRender is being used, look in about:support. In the Graphics
622 section, Compositing will either show 'Basic' (i.e. not in use) or
623 'WebRender'. To enable it, go to about:config and change gfx.webrender.all
624 to True. You will need to restart firefox.
625 </para>
626
627 <para>
628 It may be useful to mention the processes from firefox which can appear in
629 <command>top</command> - as well as firefox itself, there may be multiple
630 Web Content processes, and now an RDD Process (Remote Data Decoder) which
631 appears when playing web videos encoded with av1 (libdav1d). If WebRender
632 has been enabled, a GPU Process will also appear when firefox has to
633 repaint (e.g. scrolling, opening a new tab, or playing a video).
634 </para>
635
636 </sect3>
637 </sect2>
638
639 <sect2 role="content">
640 <title>Contents</title>
641
642 <segmentedlist>
643 <segtitle>Installed Programs</segtitle>
644 <segtitle>Installed Libraries</segtitle>
645 <segtitle>Installed Directory</segtitle>
646
647 <seglistitem>
648 <seg>
649 firefox
650 </seg>
651 <seg>
652 Numerous libraries, browser components, plugins, extensions, and
653 helper modules installed in /usr/lib/firefox
654 </seg>
655 <seg>
656 /usr/lib/firefox
657 </seg>
658 </seglistitem>
659 </segmentedlist>
660
661 <variablelist>
662 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
663 <?dbfo list-presentation="list"?>
664 <?dbhtml list-presentation="table"?>
665
666 <varlistentry id="firefox-prog">
667 <term><command>firefox</command></term>
668 <listitem>
669 <para>
670 is a <application>GTK+-3</application> internet browser that uses
671 the Mozilla Gecko rendering engine
672 </para>
673 <indexterm zone="firefox firefox-prog">
674 <primary sortas="b-firefox">firefox</primary>
675 </indexterm>
676 </listitem>
677 </varlistentry>
678
679 </variablelist>
680
681 </sect2>
682
683</sect1>
Note: See TracBrowser for help on using the repository browser.