Bug 1337870 Skip truncation of addon names r=mossop
authorAndrew Swan <aswan@mozilla.com>
Thu, 23 Feb 2017 21:47:08 -0800
changeset 373883 9552a366b69e49f7c23f334b0a78152c3d6a614d
parent 373882 ddc5649b792629588bfd2368a20d9489dfdfcba2
child 373884 84c8d6936cad6e4575f9b352f12ce25e70e4cf53
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmossop
bugs1337870
milestone54.0a1
Bug 1337870 Skip truncation of addon names r=mossop MozReview-Commit-ID: 9v4yJPvpT2R
browser/modules/ExtensionsUI.jsm
--- a/browser/modules/ExtensionsUI.jsm
+++ b/browser/modules/ExtensionsUI.jsm
@@ -187,21 +187,17 @@ this.ExtensionsUI = {
   },
 
   // Create a set of formatted strings for a permission prompt
   _buildStrings(info) {
     let result = {};
 
     let bundle = Services.strings.createBundle(BROWSER_PROPERTIES);
 
-    let name = info.addon.name;
-    if (name.length > 50) {
-      name = name.slice(0, 49) + "…";
-    }
-    name = this._sanitizeName(name);
+    let name = this._sanitizeName(info.addon.name);
     let addonName = `<span class="addon-webext-name">${name}</span>`;
 
     result.header = bundle.formatStringFromName("webextPerms.header", [addonName], 1);
     result.text = "";
     result.listIntro = bundle.GetStringFromName("webextPerms.listIntro");
 
     result.acceptText = bundle.GetStringFromName("webextPerms.add.label");
     result.acceptKey = bundle.GetStringFromName("webextPerms.add.accessKey");