svn commit: r460725 - in head/www/waterfox: . files

Jan Beich jbeich at FreeBSD.org
Fri Feb 2 18:53:20 UTC 2018


Author: jbeich
Date: Fri Feb  2 18:53:19 2018
New Revision: 460725
URL: https://svnweb.freebsd.org/changeset/ports/460725

Log:
  www/waterfox: unbreak Customize for new profiles after r460542

Added:
  head/www/waterfox/files/patch-waterfox416   (contents, props changed)
Modified:
  head/www/waterfox/Makefile   (contents, props changed)

Modified: head/www/waterfox/Makefile
==============================================================================
--- head/www/waterfox/Makefile	Fri Feb  2 18:36:34 2018	(r460724)
+++ head/www/waterfox/Makefile	Fri Feb  2 18:53:19 2018	(r460725)
@@ -3,6 +3,7 @@
 PORTNAME=	waterfox
 DISTVERSION=	56.0.3-65
 DISTVERSIONSUFFIX=	-gd7f689c984bf
+PORTREVISION=	1
 CATEGORIES=	www ipv6
 
 MAINTAINER=	jbeich at FreeBSD.org

Added: head/www/waterfox/files/patch-waterfox416
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/waterfox/files/patch-waterfox416	Fri Feb  2 18:53:19 2018	(r460725)
@@ -0,0 +1,26 @@
+console.error: CustomizeMode:
+  Error entering customize mode
+  Message: TypeError: messageNode.querySelector(...) is null
+  Stack:
+    maybeShowTip at resource:///modules/CustomizeMode.jsm:747:7
+enter/<@resource:///modules/CustomizeMode.jsm:425:9
+
+--- browser/components/customizableui/CustomizeMode.jsm.orig	2018-01-31 12:45:10 UTC
++++ browser/components/customizableui/CustomizeMode.jsm
+@@ -735,14 +735,13 @@ CustomizeMode.prototype = {
+       // Put the tip contents in the popup.
+       let bundle = this.document.getElementById("bundle_browser");
+       const kLabelClass = "customization-tipPanel-link";
+-      // eslint-disable-next-line no-unsanitized/property
+-      messageNode.innerHTML = bundle.getFormattedString("customizeTips.tip0", [
++      messageNode.unsafeSetInnerHTML(bundle.getFormattedString("customizeTips.tip0", [
+         "<label class=\"customization-tipPanel-em\" value=\"" +
+           bundle.getString("customizeTips.tip0.hint") + "\"/>",
+         this.document.getElementById("bundle_brand").getString("brandShortName"),
+         "<label class=\"" + kLabelClass + " text-link\" value=\"" +
+         bundle.getString("customizeTips.tip0.learnMore") + "\"/>"
+-      ]);
++      ]));
+ 
+       messageNode.querySelector("." + kLabelClass).addEventListener("click", () => {
+         let url = Services.urlFormatter.formatURLPref("browser.customizemode.tip0.learnMoreUrl");


More information about the svn-ports-head mailing list