Bug 1616379 - Weaken the MOZ_ASSERT on failing to load a hyphenation resource to an NS_ASSERTION. r=jya

Differential Revision: https://phabricator.services.mozilla.com/D76110
This commit is contained in:
Jonathan Kew 2020-05-20 12:01:50 +00:00
parent 0fd477fc08
commit 9a57c26cee

View File

@ -188,7 +188,10 @@ nsHyphenator::nsHyphenator(nsIURI* aURI, bool aHyphenateCapitalized)
}
}
MOZ_ASSERT_UNREACHABLE("invalid hyphenation resource?");
nsAutoCString msg;
aURI->GetSpec(msg);
msg.Insert("Invalid hyphenation resource: ", 0);
NS_ASSERTION(false, msg.get());
}
bool nsHyphenator::IsValid() {