Bug 1465457 - Remove assertion in nsChromeRegistryContent::IsLocaleRTL requiring "global" package r=NeilDeakin

We are running certain xul reftests in the content process registered in chrome://reftest,
and it's OK for them to call this function (which is triggered at end of XUL doc loading).

Differential Revision: https://phabricator.services.mozilla.com/D21220

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Grinstead 2019-02-26 17:13:48 +00:00
Родитель 63c5cd8f87
Коммит 75969b19af
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -170,10 +170,6 @@ nsChromeRegistryContent::CheckForNewChrome() { CONTENT_NOT_IMPLEMENTED(); }
NS_IMETHODIMP
nsChromeRegistryContent::IsLocaleRTL(const nsACString& aPackage,
bool* aResult) {
if (aPackage != nsDependentCString("global")) {
NS_ERROR("Packages other than global unavailable");
return NS_ERROR_NOT_AVAILABLE;
}
*aResult = GetDirectionForLocale(mLocale);
return NS_OK;
}