Skip to content
Snippets Groups Projects
Commit d9a68a7d authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Bug 1880988 - Apply spoof English to the default detail summary. r=emilio

parent b29ab120
Branches
Tags
1 merge request!126MB 310: Rebased MB 13.0 onto 115.12.0esr
......@@ -105,8 +105,9 @@ void HTMLDetailsElement::SetupShadowTree() {
}
nsAutoString defaultSummaryText;
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"DefaultSummary", defaultSummaryText);
nsContentUtils::GetMaybeLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"DefaultSummary", OwnerDoc(),
defaultSummaryText);
RefPtr<nsTextNode> description = new (nim) nsTextNode(nim);
description->SetText(defaultSummaryText, kNotify);
summary->AppendChildTo(description, kNotify, IgnoreErrors());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment