summaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-bug1299694
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-09-19 21:58:39 +0000
committerJan Beich <jbeich@FreeBSD.org>2016-09-19 21:58:39 +0000
commit0b373b2ae1420b8fefe6dce2712999822854cd24 (patch)
tree6d5bc62f20f7ec3781fb8153e9d818ba8923210e /www/firefox/files/patch-bug1299694
parent- Update gnucash-docs to 2.6.14 (diff)
www/firefox: backport a few fixes
- Gracefully fail HiDPI telemetry if disabled - Remove Widevine stub from about:addons#plugins MFH: 2016Q3
Notes
Notes: svn path=/head/; revision=422464
Diffstat (limited to 'www/firefox/files/patch-bug1299694')
-rw-r--r--www/firefox/files/patch-bug129969431
1 files changed, 31 insertions, 0 deletions
diff --git a/www/firefox/files/patch-bug1299694 b/www/firefox/files/patch-bug1299694
new file mode 100644
index 000000000000..2742c32b4f4a
--- /dev/null
+++ b/www/firefox/files/patch-bug1299694
@@ -0,0 +1,31 @@
+commit 6ab2496
+Author: Chris Pearce <cpearce@mozilla.com>
+Date: Mon Sep 5 13:54:37 2016 +1200
+
+ Bug 1299694 - Ensure we don't enable Widevine unintentionally. r=glandium
+
+ On FreeBSD the target.kernel etc checks in enable_eme are failing,
+ but we're still falling through to |return value|, and so Widevine
+ is being enabled. If we remove the |return value| from enable_eme
+ we at least make Widevine disabled where it's not supposed to be
+ enabled.
+
+ MozReview-Commit-ID: D1h0IUidxhv
+---
+ toolkit/moz.configure | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git toolkit/moz.configure toolkit/moz.configure
+index 0c98c7a..a00b6eb 100644
+--- toolkit/moz.configure
++++ toolkit/moz.configure
+@@ -366,7 +366,8 @@ def enable_eme(value, target):
+ return value
+ elif value and value.origin != 'default':
+ die('%s is not supported on %s' % (value.format('--enable-eme'), target.alias))
+- return value
++ # Return the same type of OptionValue (Positive or Negative), with an empty tuple.
++ return value.__class__(())
+
+ @depends(enable_eme, fmp4)
+ def eme(value, fmp4):