зеркало из https://github.com/mozilla/pjs.git
Bug 624740 - Alerts service shouldn't use nsDependentString to convert an nsAString to an nsString. r=neil
This commit is contained in:
Родитель
d60f6d754c
Коммит
206a6b2c9f
|
@ -53,7 +53,7 @@
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
#include "nsIDOMWindow.h"
|
#include "nsIDOMWindow.h"
|
||||||
#include "nsIWindowWatcher.h"
|
#include "nsIWindowWatcher.h"
|
||||||
#include "nsDependentString.h"
|
#include "nsPromiseFlatString.h"
|
||||||
#include "nsWidgetsCID.h"
|
#include "nsWidgetsCID.h"
|
||||||
#include "nsILookAndFeel.h"
|
#include "nsILookAndFeel.h"
|
||||||
#include "nsToolkitCompsCID.h"
|
#include "nsToolkitCompsCID.h"
|
||||||
|
@ -85,7 +85,7 @@ NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & aImageUrl
|
||||||
ContentChild* cpc = ContentChild::GetSingleton();
|
ContentChild* cpc = ContentChild::GetSingleton();
|
||||||
|
|
||||||
if (aAlertListener)
|
if (aAlertListener)
|
||||||
cpc->AddRemoteAlertObserver(nsDependentString(aAlertCookie), aAlertListener);
|
cpc->AddRemoteAlertObserver(PromiseFlatString(aAlertCookie), aAlertListener);
|
||||||
|
|
||||||
cpc->SendShowAlertNotification(nsAutoString(aImageUrl),
|
cpc->SendShowAlertNotification(nsAutoString(aImageUrl),
|
||||||
nsAutoString(aAlertTitle),
|
nsAutoString(aAlertTitle),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче