Bug 1340135 Use the right strings for permission update notifications draft
authorAndrew Swan <aswan@mozilla.com>
Thu, 16 Feb 2017 13:41:27 -0800
changeset 485586 991ffc5f0411ba186db36a1c60b0ed1800454056
parent 485446 bf6b9caab2c7eb3ebc642afd82bc19598829c6f3
child 546057 7cc83038d7ab628f437ec2ef4b80486f6f56b8ab
push id45774
push useraswan@mozilla.com
push dateThu, 16 Feb 2017 21:42:20 +0000
bugs1340135
milestone54.0a1
Bug 1340135 Use the right strings for permission update notifications MozReview-Commit-ID: uL37kpCIIC
browser/modules/ExtensionsUI.jsm
--- a/browser/modules/ExtensionsUI.jsm
+++ b/browser/modules/ExtensionsUI.jsm
@@ -133,16 +133,17 @@ this.ExtensionsUI = {
         reply(true);
       } else {
         info.permissions = perms;
         let strings = this._buildStrings(info);
         this.showPermissionsPrompt(target, strings, info.icon).then(reply);
       }
     } else if (topic == "webextension-update-permissions") {
       let info = subject.wrappedJSObject;
+      info.type = "update";
       let strings = this._buildStrings(info);
 
       // If we don't prompt for any new permissions, just apply it
       if (strings.msgs.length == 0) {
         info.resolve();
         return;
       }