Skip to content

Commit

Permalink
Bug 1465457 - Remove assertion in nsChromeRegistryContent::IsLocaleRT…
Browse files Browse the repository at this point in the history
…L 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
  • Loading branch information
bgrins committed Feb 26, 2019
1 parent 63c5cd8 commit 75969b1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions chrome/nsChromeRegistryContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 75969b1

Please sign in to comment.