[tbb-commits] [tor-browser] 248/311: Bug 1747898 - P1. Use default region when "browser.search.region" pref is not present r=sgalich, tgiles a=dmeehan

gitolite role git at cupani.torproject.org
Tue Apr 26 15:30:48 UTC 2022


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

pierov pushed a commit to branch geckoview-99.0.1-11.0-1
in repository tor-browser.

commit 989ac0f3b772558850af3c49d95e2a577b23e3db
Author: Dimi <dlee at mozilla.com>
AuthorDate: Tue Mar 22 21:21:06 2022 +0000

    Bug 1747898 - P1. Use default region when "browser.search.region" pref is not present r=sgalich,tgiles a=dmeehan
    
    This was added in Bug 1747096 but was accidentally was removed in Bug 1745248.
    
    Differential Revision: https://phabricator.services.mozilla.com/D141766
---
 toolkit/components/formautofill/FormAutofill.jsm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/toolkit/components/formautofill/FormAutofill.jsm b/toolkit/components/formautofill/FormAutofill.jsm
index 017a95963749b..f45c61776c102 100644
--- a/toolkit/components/formautofill/FormAutofill.jsm
+++ b/toolkit/components/formautofill/FormAutofill.jsm
@@ -91,8 +91,13 @@ var FormAutofill = {
       if (!FormAutofill.supportRTL && Services.locale.isAppLocaleRTL) {
         return false;
       }
-      let region = Services.prefs.getCharPref(BROWSER_SEARCH_REGION_PREF, "");
-
+      // TODO: Bug 1747284. Use Region.home instead of reading "browser.serach.region"
+      // by default. However, Region.home doesn't observe preference change at this point,
+      // we should also fix that issue.
+      let region = Services.prefs.getCharPref(
+        BROWSER_SEARCH_REGION_PREF,
+        this.DEFAULT_REGION
+      );
       return supportedCountries.includes(region);
     }
     return false;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list