Backed out changeset 1d87c269da8a (bug 1581537) for causing bc failures in browser_misused_characters_in_strings.js CLOSED TREE

This commit is contained in:
Mihai Alexandru Michis
2019-11-04 16:06:37 +02:00
parent dcb3e8083b
commit 6be7f1be0b
25 changed files with 149 additions and 290 deletions

View File

@@ -1047,9 +1047,9 @@ nsresult HTMLTextAreaElement::GetValidationMessage(
strMaxLength.AppendInt(maxLength);
strTextLength.AppendInt(textLength);
rv = nsContentUtils::FormatMaybeLocalizedString(
rv = nsContentUtils::FormatLocalizedString(
message, nsContentUtils::eDOM_PROPERTIES, "FormValidationTextTooLong",
OwnerDoc(), strMaxLength, strTextLength);
strMaxLength, strTextLength);
aValidationMessage = message;
} break;
case VALIDITY_STATE_TOO_SHORT: {
@@ -1062,17 +1062,16 @@ nsresult HTMLTextAreaElement::GetValidationMessage(
strMinLength.AppendInt(minLength);
strTextLength.AppendInt(textLength);
rv = nsContentUtils::FormatMaybeLocalizedString(
rv = nsContentUtils::FormatLocalizedString(
message, nsContentUtils::eDOM_PROPERTIES,
"FormValidationTextTooShort", OwnerDoc(), strMinLength,
strTextLength);
"FormValidationTextTooShort", strMinLength, strTextLength);
aValidationMessage = message;
} break;
case VALIDITY_STATE_VALUE_MISSING: {
nsAutoString message;
rv = nsContentUtils::GetMaybeLocalizedString(
nsContentUtils::eDOM_PROPERTIES, "FormValidationValueMissing",
OwnerDoc(), message);
rv = nsContentUtils::GetLocalizedString(nsContentUtils::eDOM_PROPERTIES,
"FormValidationValueMissing",
message);
aValidationMessage = message;
} break;
default: