Skip to content
Snippets Groups Projects
Verified Commit 2c53caef 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 800cbb59
Branches
No related tags found
1 merge request!1061Bug 42998: Rebased stable onto 115.14.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