Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 21:58:39 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r422464 - in head/www/firefox: . files
Message-ID:  <201609192158.u8JLwdOr066314@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Sep 19 21:58:39 2016
New Revision: 422464
URL: https://svnweb.freebsd.org/changeset/ports/422464

Log:
  www/firefox: backport a few fixes
  
  - Gracefully fail HiDPI telemetry if disabled
  - Remove Widevine stub from about:addons#plugins
  
  MFH:		2016Q3

Added:
  head/www/firefox/files/patch-bug1299694   (contents, props changed)
  head/www/firefox/files/patch-bug1303380   (contents, props changed)
Modified:
  head/www/firefox/Makefile   (contents, props changed)

Modified: head/www/firefox/Makefile
==============================================================================
--- head/www/firefox/Makefile	Mon Sep 19 21:17:59 2016	(r422463)
+++ head/www/firefox/Makefile	Mon Sep 19 21:58:39 2016	(r422464)
@@ -4,7 +4,7 @@
 PORTNAME=	firefox
 DISTVERSION=	49.0
 DISTVERSIONSUFFIX=.source
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \

Added: head/www/firefox/files/patch-bug1299694
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/firefox/files/patch-bug1299694	Mon Sep 19 21:58:39 2016	(r422464)
@@ -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):

Added: head/www/firefox/files/patch-bug1303380
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/firefox/files/patch-bug1303380	Mon Sep 19 21:58:39 2016	(r422464)
@@ -0,0 +1,26 @@
+commit c0fd0d3
+Author: Jared Wein <jwein@mozilla.com>
+Date:   Mon Sep 19 15:40:28 2016 -0400
+
+    Bug 1303380 - Wrap the telemetry code in _firstWindowLoaded with a try/catch to allow startup and migration code to run to completion if there is an exception writing to Telemetry. r=gijs
+    
+    MozReview-Commit-ID: DPfq6lZ4fM3
+---
+ browser/components/nsBrowserGlue.js | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git browser/components/nsBrowserGlue.js browser/components/nsBrowserGlue.js
+index eebbef2..20706fd 100644
+--- browser/components/nsBrowserGlue.js
++++ browser/components/nsBrowserGlue.js
+@@ -931,7 +931,9 @@ BrowserGlue.prototype = {
+     }
+     if (SCALING_PROBE_NAME) {
+       let scaling = aWindow.devicePixelRatio * 100;
+-      Services.telemetry.getHistogramById(SCALING_PROBE_NAME).add(scaling);
++      try {
++        Services.telemetry.getHistogramById(SCALING_PROBE_NAME).add(scaling);
++      } catch (ex) {}
+     }
+   },
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609192158.u8JLwdOr066314>