[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.8.0esr-13.0-1] Bug 1880988 - Apply spoof English to the default detail summary. r=emilio

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Tue Mar 12 10:21:12 UTC 2024



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


Commits:
e53013fd by Pier Angelo Vendrame at 2024-03-12T11:21:05+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/mullvad-browser/-/commit/e53013fdceabcc54d1c1f867239f9a6320b9e267

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240312/55750a77/attachment-0001.htm>


More information about the tbb-commits mailing list