Bug 1451076 - Extension update message should have full text in the tooltip in case it gets truncated. r=Gijs
authorJared Wein <jwein@mozilla.com>
Thu, 05 Apr 2018 13:10:31 -0400
changeset 456979 fa18d751ad498285d09455952cc5edf11d812078
parent 456978 fa7b19c6c7a3d7e10cdd22cac613051609d9389c
child 456980 f07200a6468df11e3bfeb00950fdef1eb416add4
push id153
push userfmarier@mozilla.com
push dateTue, 10 Apr 2018 02:28:40 +0000
reviewersGijs
bugs1451076
milestone61.0a1
Bug 1451076 - Extension update message should have full text in the tooltip in case it gets truncated. r=Gijs MozReview-Commit-ID: L2ySkqjkY1P
browser/base/content/browser-addons.js
--- a/browser/base/content/browser-addons.js
+++ b/browser/base/content/browser-addons.js
@@ -480,16 +480,17 @@ var gExtensionsNotifications = {
       return;
     }
     ExtensionsUI.off("change", this.boundUpdate);
   },
 
   _createAddonButton(text, icon, callback) {
     let button = document.createElement("toolbarbutton");
     button.setAttribute("label", text);
+    button.setAttribute("tooltiptext", text);
     const DEFAULT_EXTENSION_ICON =
       "chrome://mozapps/skin/extensions/extensionGeneric.svg";
     button.setAttribute("image", icon || DEFAULT_EXTENSION_ICON);
     button.className = "addon-banner-item";
 
     button.addEventListener("command", callback);
     PanelUI.addonNotificationContainer.appendChild(button);
   },