зеркало из https://github.com/mozilla/gecko-dev.git
Bug 627670 - "The argument of callback function of PopupNotifications is only event name." [r+a-2.0=dtownsend]
This commit is contained in:
Родитель
aa52ed2fc3
Коммит
edda58b342
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче