pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox firefox: Enable WebRender by default, bypa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d9a3f858c1e
branches:  trunk
changeset: 379408:7d9a3f858c1e
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon May 16 05:39:52 2022 +0000

description:
firefox: Enable WebRender by default, bypassing Firefox's internal
soup of checks to see whether the GPU is "good enough" (that has a failure
rate of 100% on NetBSD).  Greatly improves general web page performance,
even with the unaccelerated llvmpipe OpenGL implementation.  Tested
with various Xorg drivers.

diffstat:

 www/firefox/distinfo                                     |   4 +-
 www/firefox/patches/patch-browser_app_profile_firefox.js |  17 +++++++++++++--
 2 files changed, 16 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r 01038b0c55f7 -r 7d9a3f858c1e www/firefox/distinfo
--- a/www/firefox/distinfo      Sun May 15 22:44:24 2022 +0000
+++ b/www/firefox/distinfo      Mon May 16 05:39:52 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.465 2022/05/14 10:30:26 tnn Exp $
+$NetBSD: distinfo,v 1.466 2022/05/16 05:39:52 nia Exp $
 
 BLAKE2s (firefox-100.0.source.tar.xz) = 4812f3e0fb74292ce21fa024ae27e8f3aa534b58cd0bbac8e01f67d7ccc42196
 SHA512 (firefox-100.0.source.tar.xz) = 29c56391c980209ff94c02a9aba18fe27bea188bdcbcf7fe0c0f27f61e823f4507a3ec343b27cb5285cf3901843e9cc4aca8e568beb623c4b69b7282e662b2aa
@@ -6,7 +6,7 @@
 BLAKE2s (nodejs-output-95.0.tgz) = c44b37d3605524a49157002f01c29f568f04194b0e635bc312de7ffdeb9a74c9
 SHA512 (nodejs-output-95.0.tgz) = 2faf326f4e100b66f8597c365cc2eb5d0eee26aae92a7e2446891f2178041aa71ba16eae37000acacd43a657025ec11c18db73b112f5c49cc21cdb882da6d798
 Size (nodejs-output-95.0.tgz) = 200627 bytes
-SHA1 (patch-browser_app_profile_firefox.js) = 89cea0a66457c96ad0b94aaa524aa5942ad781d0
+SHA1 (patch-browser_app_profile_firefox.js) = 7f6b4361fe62ccc2d1c092a5ace97ea2085727bf
 SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
 SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a
 SHA1 (patch-config_makefiles_rust.mk) = fa9f0f59a179cae2562a76110fada49039490fb8
diff -r 01038b0c55f7 -r 7d9a3f858c1e www/firefox/patches/patch-browser_app_profile_firefox.js
--- a/www/firefox/patches/patch-browser_app_profile_firefox.js  Sun May 15 22:44:24 2022 +0000
+++ b/www/firefox/patches/patch-browser_app_profile_firefox.js  Mon May 16 05:39:52 2022 +0000
@@ -1,8 +1,11 @@
-$NetBSD: patch-browser_app_profile_firefox.js,v 1.15 2020/05/03 18:45:30 maya Exp $
+$NetBSD: patch-browser_app_profile_firefox.js,v 1.16 2022/05/16 05:39:52 nia Exp $
 
---- browser/app/profile/firefox.js.orig        2019-07-06 01:48:29.000000000 +0000
+This patch modifies default Firefox settings - see the comments above
+each one.
+
+--- browser/app/profile/firefox.js.orig        2022-04-28 23:01:46.000000000 +0000
 +++ browser/app/profile/firefox.js
-@@ -1851,6 +1851,12 @@ pref("fission.frontend.simulate-messages
+@@ -2205,6 +2205,20 @@ pref("fission.frontend.simulate-messages
  pref("toolkit.coverage.enabled", false);
  pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org";);
  
@@ -12,6 +15,14 @@
 +// Enable system addons, for example langpacks from www/firefox-l10n
 +pref("extensions.autoDisableScopes", 11);
 +
++// Firefox includes a complex mechanism for "blacklisting" GPUs that
++// appears to fail on a NetBSD system where the only available OpenGL
++// implementations are all from Mesa.  WebRender was supposed to be
++// enabled by default from Firefox 91 onwards and appears to greatly
++// improve performance even with acceleration disabled at the kernel
++// level.
++pref("gfx.webrender.all", true);
++
  // Discovery prefs
  pref("browser.discovery.enabled", true);
  pref("browser.discovery.containers.enabled", true);



Home | Main Index | Thread Index | Old Index