[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] branch tor-browser-91.13.0esr-11.5-1 updated: Bug 41413: reset install supplied locale pref so it persists



This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.13.0esr-11.5-1
in repository tor-browser.

The following commit(s) were added to refs/heads/tor-browser-91.13.0esr-11.5-1 by this push:
     new a83148635e48 Bug 41413: reset install supplied locale pref so it persists
a83148635e48 is described below

commit a83148635e482714e3c2a38d02b19f7a2241d691
Author: Dan Ballard <dan@xxxxxxxxxxxx>
AuthorDate: Tue Nov 1 08:31:40 2022 -0700

    Bug 41413: reset install supplied locale pref so it persists
---
 browser/components/BrowserGlue.jsm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/browser/components/BrowserGlue.jsm b/browser/components/BrowserGlue.jsm
index d41934720c25..1e6592909968 100644
--- a/browser/components/BrowserGlue.jsm
+++ b/browser/components/BrowserGlue.jsm
@@ -1416,6 +1416,10 @@ BrowserGlue.prototype = {
       Services.prefs.clearUserPref("security.enterprise_roots.auto-enabled");
     }
 
+    if (!Services.prefs.prefHasUserValue("intl.locale.requested")) {
+      Services.prefs.setStringPref("intl.locale.requested", Services.prefs.getStringPref("intl.locale.requested", ""));
+    }
+
     if (!Services.prefs.prefHasUserValue(PREF_PDFJS_ISDEFAULT_CACHE_STATE)) {
       PdfJs.checkIsDefault(this._isNewProfile);
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits