aboutsummaryrefslogtreecommitdiff
path: root/www/firefox
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-08-09 16:31:01 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-08-09 16:31:01 +0000
commitbbd4ae7d1da96f974dee87da8b87112f8d81667b (patch)
tree622c442dc2041f85a0384b8846890df54f189e02 /www/firefox
parent584a8b67865510e86ad9cd5a97f02e725693a737 (diff)
downloadports-bbd4ae7d1da96f974dee87da8b87112f8d81667b.tar.gz
ports-bbd4ae7d1da96f974dee87da8b87112f8d81667b.zip
www/firefox: temporarily disable OMTC to avoid crashes
OMTC on X11 platforms uses BasicCompositor unless GL layers are also enabled. Change the default value of its pref in about:config. For now, bundled cairo is left as is pending more testing. No upstream bug as I cannot reproduce reliably to get the stacktrace(s) with a clean profile. PR: 202174 Reported by: many Tested by: Martin Birgmeier, Andrey Fesenko, Konstantin Belousov MFH: 2015Q3 X-MFH-With: r393690
Notes
Notes: svn path=/head/; revision=393805
Diffstat (limited to 'www/firefox')
-rw-r--r--www/firefox/Makefile1
-rw-r--r--www/firefox/files/patch-modules-libpref-init-all.js15
2 files changed, 16 insertions, 0 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index b8b0aa7345cf..9a08167832b9 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -4,6 +4,7 @@
PORTNAME= firefox
DISTVERSION= 40.0
DISTVERSIONSUFFIX=.source
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www ipv6
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
diff --git a/www/firefox/files/patch-modules-libpref-init-all.js b/www/firefox/files/patch-modules-libpref-init-all.js
new file mode 100644
index 000000000000..660b538c62a9
--- /dev/null
+++ b/www/firefox/files/patch-modules-libpref-init-all.js
@@ -0,0 +1,15 @@
+--- modules/libpref/init/all.js.orig 2015-08-06 22:39:34 UTC
++++ modules/libpref/init/all.js
+@@ -4052,7 +4052,12 @@ pref("layers.max-active", -1);
+ pref("layers.tiles.adjust", true);
+
+ // Set the default values, and then override per-platform as needed
++#ifdef MOZ_TREE_CAIRO
+ pref("layers.offmainthreadcomposition.enabled", true);
++#else
++// Disable for system cairo on suspicion of causing random crashes
++pref("layers.offmainthreadcomposition.enabled", false);
++#endif
+ // Compositor target frame rate. NOTE: If vsync is enabled the compositor
+ // frame rate will still be capped.
+ // -1 -> default (match layout.frame_rate or 60 FPS)