Bug 627670 - "The argument of callback function of PopupNotifications is only event name." [r+a-2.0=dtownsend]

This commit is contained in:
Hiroyuki Ikezoe 2011-01-21 02:21:00 -08:00
parent 4ed3de15f4
commit c4d8ba71b1

View File

@ -719,11 +719,11 @@ const gXPInstallObserver = {
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);