Bug 1581537 - Avoid several browser language leaks r=smaug
Spoof dom/dom.properties, layout/xmlparser.properties, layout/MediaDocument.properties to en-US if needed. Differential Revision: https://phabricator.services.mozilla.com/D46034
This commit is contained in:
@@ -1520,9 +1520,9 @@ nsresult HTMLSelectElement::GetValidationMessage(nsAString& aValidationMessage,
|
||||
switch (aType) {
|
||||
case VALIDITY_STATE_VALUE_MISSING: {
|
||||
nsAutoString message;
|
||||
nsresult rv = nsContentUtils::GetLocalizedString(
|
||||
nsresult rv = nsContentUtils::GetMaybeLocalizedString(
|
||||
nsContentUtils::eDOM_PROPERTIES, "FormValidationSelectMissing",
|
||||
message);
|
||||
OwnerDoc(), message);
|
||||
aValidationMessage = message;
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user