Bug 627670 - "The argument of callback function of PopupNotifications is only event name." [r+a-2.0=dtownsend]
authorHiroyuki Ikezoe <hiikezoe>
Fri, 21 Jan 2011 02:21:00 -0800
changeset 61091 64c7b8b4e0465f7cc9e89c0785528fa58bc8d504
parent 61090 a01589063ec0571339b76e9f7eb137d14997fd0c
child 61092 fe04d3537b36eb95a03decd282f6974432277cbd
push idunknown
push userunknown
push dateunknown
bugs627670
milestone2.0b10pre
Bug 627670 - "The argument of callback function of PopupNotifications is only event name." [r+a-2.0=dtownsend]
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -714,21 +714,21 @@ const gXPInstallObserver = {
       if (!installInfo.installs.some(needsDownload))
         return;
       notificationID = "addon-progress";
       messageString = gNavigatorBundle.getString("addonDownloading");
       messageString = PluralForm.get(installInfo.installs.length, messageString);
       options.installs = installInfo.installs;
       options.contentWindow = browser.contentWindow;
       options.sourceURI = browser.currentURI;
-      options.eventCallback = function(aNotification, aEvent) {
+      options.eventCallback = function(aEvent) {
         if (aEvent != "removed")
           return;
-        aNotification.options.contentWindow = null;
-        aNotification.options.sourceURI = null;
+        options.contentWindow = null;
+        options.sourceURI = null;
       };
       PopupNotifications.show(browser, notificationID, messageString, anchorID,
                               null, null, options);
       break;
     case "addon-install-failed":
       // TODO This isn't terribly ideal for the multiple failure case
       installInfo.installs.forEach(function(aInstall) {
         var host = (installInfo.originatingURI instanceof Ci.nsIStandardURL) &&