From edda58b342a26a9917fa517c4d9ff5631b197b6a Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 21 Jan 2011 02:21:00 -0800 Subject: [PATCH] Bug 627670 - "The argument of callback function of PopupNotifications is only event name." [r+a-2.0=dtownsend] --- browser/base/content/browser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index f6a60bbfc5ad..ef9f7a33c5d0 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -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);