mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 998356. Don't completely fail out of the parser if we can't format one of our string error messages. r=hsivonen
This commit is contained in:
parent
12cf0111e5
commit
900ca9c9b2
@ -129,3 +129,4 @@ errSelfClosing=Self-closing syntax (“/>”) used on a non-void HTML element. I
|
||||
errNoCheckUnclosedElementsOnStack=Unclosed elements on stack.
|
||||
errEndTagDidNotMatchCurrentOpenElement=End tag “%1$S” did not match the name of the current open element (“%2$S”).
|
||||
errEndTagViolatesNestingRules=End tag “%1$S” violates nesting rules.
|
||||
errEndWithUnclosedElements=End tag for “%1$S” seen, but there were unclosed elements.
|
@ -953,16 +953,16 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
|
||||
otherAtom->GetUTF16String() };
|
||||
rv = nsContentUtils::FormatLocalizedString(
|
||||
nsContentUtils::eHTMLPARSER_PROPERTIES, msgId, params, message);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_OK);
|
||||
} else if (atom) {
|
||||
const char16_t* params[] = { atom->GetUTF16String() };
|
||||
rv = nsContentUtils::FormatLocalizedString(
|
||||
nsContentUtils::eHTMLPARSER_PROPERTIES, msgId, params, message);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_OK);
|
||||
} else {
|
||||
rv = nsContentUtils::GetLocalizedString(
|
||||
nsContentUtils::eHTMLPARSER_PROPERTIES, msgId, message);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_OK);
|
||||
}
|
||||
|
||||
nsAutoString title;
|
||||
|
Loading…
Reference in New Issue
Block a user