Bug 1333262 Set notification text unconditionally r?florian draft
authorAndrew Swan <aswan@mozilla.com>
Mon, 23 Jan 2017 18:07:25 -0800
changeset 465448 3647bb0366bf325e559b19f97df02a4274004633
parent 464990 5a4412474c63e1d9e66036d603ac42e9cb2b9150
child 543143 ac8bbfb39010e0795c03e2ba1b8aaee074daa7c4
push id42593
push useraswan@mozilla.com
push dateTue, 24 Jan 2017 02:08:02 +0000
reviewersflorian
bugs1333262
milestone54.0a1
Bug 1333262 Set notification text unconditionally r?florian MozReview-Commit-ID: DzzZaKWXrV8
browser/modules/ExtensionsUI.jsm
--- a/browser/modules/ExtensionsUI.jsm
+++ b/browser/modules/ExtensionsUI.jsm
@@ -257,20 +257,17 @@ this.ExtensionsUI = {
       hideClose: true,
       popupIconURL: info.icon,
       persistent: true,
 
       eventCallback(topic) {
         if (topic == "showing") {
           let doc = this.browser.ownerDocument;
           doc.getElementById("addon-webext-perm-header").innerHTML = header;
-
-          if (text) {
-            doc.getElementById("addon-webext-perm-text").innerHTML = text;
-          }
+          doc.getElementById("addon-webext-perm-text").innerHTML = text;
 
           let listIntroEl = doc.getElementById("addon-webext-perm-intro");
           listIntroEl.value = listIntro;
           listIntroEl.hidden = (msgs.length == 0);
 
           let list = doc.getElementById("addon-webext-perm-list");
           while (list.firstChild) {
             list.firstChild.remove();