[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.8.0esr-13.5-1] Bug 42378: Apply spoof English to the default detail summary.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon Mar 4 08:49:46 UTC 2024



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


Commits:
303938d9 by Pier Angelo Vendrame at 2024-03-04T09:49:37+01:00
Bug 42378: Apply spoof English to the default detail summary.

- - - - -


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/303938d9b9ba970f2ccc5bae6a4250e6bc7fbb1f

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/303938d9b9ba970f2ccc5bae6a4250e6bc7fbb1f
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/20240304/a020ad62/attachment.htm>


More information about the tbb-commits mailing list