Bug 632825 - Error: URI_GENERIC_ICON_XPINSTALL is not defined [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 09 Feb 2011 11:07:53 -0500
changeset 67361 f4571576e0c5466f5ed16a19fd5a74044c8e2690
parent 67360 978f2e630f6df5ac3d15be0ad4e10c6d76b3ce1b
child 67362 f5348b7cfe5b91ceb2da7c9c16d4d8e86e8cc05e
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs632825
Bug 632825 - Error: URI_GENERIC_ICON_XPINSTALL is not defined [r=vingtetun]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -349,20 +349,20 @@ var Browser = {
     }
 
     // If some add-ons were disabled during during an application update, alert user
     if (Services.prefs.prefHasUserValue("extensions.disabledAddons")) {
       let addons = Services.prefs.getCharPref("extensions.disabledAddons").split(",");
       if (addons.length > 0) {
         let disabledStrings = Strings.browser.GetStringFromName("alertAddonsDisabled");
         let label = PluralForm.get(addons.length, disabledStrings).replace("#1", addons.length);
+        let image = "chrome://browser/skin/images/alert-addons-30.png";
 
         let alerts = Cc["@mozilla.org/toaster-alerts-service;1"].getService(Ci.nsIAlertsService);
-        alerts.showAlertNotification(URI_GENERIC_ICON_XPINSTALL, Strings.browser.GetStringFromName("alertAddons"),
-                                     label, false, "", null);
+        alerts.showAlertNotification(image, Strings.browser.GetStringFromName("alertAddons"), label, false, "", null);
       }
       Services.prefs.clearUserPref("extensions.disabledAddons");
     }
 
     messageManager.addMessageListener("Browser:ViewportMetadata", this);
     messageManager.addMessageListener("Browser:FormSubmit", this);
     messageManager.addMessageListener("Browser:KeyPress", this);
     messageManager.addMessageListener("Browser:ZoomToPoint:Return", this);