зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
63c5cd8f87
Коммит
75969b19af
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче