mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
0fd477fc08
commit
9a57c26cee
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user