diff --git a/toolkit/components/alerts/nsAlertsService.cpp b/toolkit/components/alerts/nsAlertsService.cpp index 70231c32bf8..b8b0a8aed32 100644 --- a/toolkit/components/alerts/nsAlertsService.cpp +++ b/toolkit/components/alerts/nsAlertsService.cpp @@ -53,7 +53,7 @@ #include "nsIServiceManager.h" #include "nsIDOMWindow.h" #include "nsIWindowWatcher.h" -#include "nsDependentString.h" +#include "nsPromiseFlatString.h" #include "nsWidgetsCID.h" #include "nsILookAndFeel.h" #include "nsToolkitCompsCID.h" @@ -85,7 +85,7 @@ NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & aImageUrl ContentChild* cpc = ContentChild::GetSingleton(); if (aAlertListener) - cpc->AddRemoteAlertObserver(nsDependentString(aAlertCookie), aAlertListener); + cpc->AddRemoteAlertObserver(PromiseFlatString(aAlertCookie), aAlertListener); cpc->SendShowAlertNotification(nsAutoString(aImageUrl), nsAutoString(aAlertTitle),