Pier Angelo Vendrame pushed to branch tor-browser-115.8.0esr-13.0-1 at The Tor 
Project / Applications / Tor Browser


Commits:
12196262 by Pier Angelo Vendrame at 2024-03-12T11:19:26+01:00
Bug 1880988 - Apply spoof English to the default detail summary. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D202203
- - - - -


1 changed file:

- dom/html/HTMLDetailsElement.cpp


Changes:

=====================================
dom/html/HTMLDetailsElement.cpp
=====================================
@@ -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());



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/12196262d137bdb1d4e9b37ad847bce88a1906f8

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/12196262d137bdb1d4e9b37ad847bce88a1906f8
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits

Reply via email to