Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2018 18:53:19 +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: r460725 - in head/www/waterfox: . files
Message-ID:  <201802021853.w12IrJuF036825@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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");



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