summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-toolkit_components_alerts_nsAlertsService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/patches/patch-toolkit_components_alerts_nsAlertsService.cpp')
-rw-r--r--www/firefox/patches/patch-toolkit_components_alerts_nsAlertsService.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/www/firefox/patches/patch-toolkit_components_alerts_nsAlertsService.cpp b/www/firefox/patches/patch-toolkit_components_alerts_nsAlertsService.cpp
new file mode 100644
index 00000000000..344cc4cd05d
--- /dev/null
+++ b/www/firefox/patches/patch-toolkit_components_alerts_nsAlertsService.cpp
@@ -0,0 +1,21 @@
+$NetBSD: patch-toolkit_components_alerts_nsAlertsService.cpp,v 1.1 2014/12/01 18:11:14 ryoon Exp $
+
+--- toolkit/components/alerts/nsAlertsService.cpp.orig 2014-11-21 03:37:50.000000000 +0000
++++ toolkit/components/alerts/nsAlertsService.cpp
+@@ -100,10 +100,12 @@ NS_IMETHODIMP nsAlertsService::ShowAlert
+ nsCOMPtr<nsIAlertsService> sysAlerts(do_GetService(NS_SYSTEMALERTSERVICE_CONTRACTID));
+ nsresult rv;
+ if (sysAlerts) {
+- return sysAlerts->ShowAlertNotification(aImageUrl, aAlertTitle, aAlertText, aAlertTextClickable,
+- aAlertCookie, aAlertListener, aAlertName,
+- aBidi, aLang, aData,
+- IPC::Principal(aPrincipal));
++ rv = sysAlerts->ShowAlertNotification(aImageUrl, aAlertTitle, aAlertText, aAlertTextClickable,
++ aAlertCookie, aAlertListener, aAlertName,
++ aBidi, aLang, aData,
++ IPC::Principal(aPrincipal));
++ if (NS_SUCCEEDED(rv))
++ return NS_OK;
+ }
+
+ if (!ShouldShowAlert()) {