Skip to content

Commit

Permalink
Bug 1880988 - Apply spoof English to the default detail summary. r=em…
Browse files Browse the repository at this point in the history
  • Loading branch information
PieroV committed Mar 11, 2024
1 parent baa932c commit 6fb1555
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dom/html/HTMLDetailsElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,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());
Expand Down

0 comments on commit 6fb1555

Please sign in to comment.