mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Backout of changeset fa03a509c7a7 - 'Bug 516124 - Crash [@ nsAlertsIconListener::SendClosed]' to fix the orange of the linux unit test box.
This commit is contained in:
parent
0e9062adbb
commit
877e274090
@ -33,8 +33,6 @@ const Ci = Components.interfaces;
|
||||
try {
|
||||
var notifier = Cc["@mozilla.org/alerts-service;1"].
|
||||
getService(Ci.nsIAlertsService);
|
||||
notifier.showAlertNotification(null, "Notification test", "Surprise! I'm here to test a notification without observer!",
|
||||
false, "foobarcookie", null);
|
||||
notifier.showAlertNotification(null, "Notification test", "Surprise! I'm here to test notifications!",
|
||||
false, "foobarcookie", observer);
|
||||
|
||||
|
@ -250,17 +250,13 @@ nsAlertsIconListener::StartRequest(const nsAString & aImageUrl)
|
||||
void
|
||||
nsAlertsIconListener::SendCallback()
|
||||
{
|
||||
if (mAlertListener) {
|
||||
mAlertListener->Observe(NULL, "alertclickcallback", mAlertCookie.get());
|
||||
}
|
||||
mAlertListener->Observe(NULL, "alertclickcallback", mAlertCookie.get());
|
||||
}
|
||||
|
||||
void
|
||||
nsAlertsIconListener::SendClosed()
|
||||
{
|
||||
if (mAlertListener) {
|
||||
mAlertListener->Observe(NULL, "alertfinished", mAlertCookie.get());
|
||||
}
|
||||
mAlertListener->Observe(NULL, "alertfinished", mAlertCookie.get());
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
x
Reference in New Issue
Block a user