Bug 1686616 - make StringBundle use Components instead of Services. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D105531
This commit is contained in:
Alexis Beingessner
2021-02-18 13:26:32 +00:00
parent 75fb3d61d0
commit b376547204
29 changed files with 49 additions and 46 deletions

View File

@@ -11,6 +11,7 @@
#include "jsapi.h"
#include "mozilla/BasePrincipal.h"
#include "mozilla/BinarySearch.h"
#include "mozilla/Components.h"
#include "mozilla/ContentEvents.h"
#include "mozilla/EventDispatcher.h"
#include "mozilla/EventStates.h"
@@ -938,7 +939,7 @@ nsresult HTMLFormElement::DoSecureToInsecureSubmitCheck(nsIURI* aActionURL,
nsCOMPtr<nsIStringBundle> stringBundle;
nsCOMPtr<nsIStringBundleService> stringBundleService =
mozilla::services::GetStringBundleService();
mozilla::components::StringBundle::Service();
if (!stringBundleService) {
return NS_ERROR_FAILURE;
}