From ab9ddae1835a388d9d2e7cf4c8bf626fe36b6995 Mon Sep 17 00:00:00 2001 From: Erica Wright Date: Wed, 18 Sep 2019 15:00:22 +0000 Subject: [PATCH] Bug 1581885 - check for en-us language without being case sensitive. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D46197 --HG-- extra : moz-landing-system : lando --- browser/components/about/AboutProtectionsHandler.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/components/about/AboutProtectionsHandler.jsm b/browser/components/about/AboutProtectionsHandler.jsm index b8d0baa778f4..a3b35f988ecc 100644 --- a/browser/components/about/AboutProtectionsHandler.jsm +++ b/browser/components/about/AboutProtectionsHandler.jsm @@ -297,7 +297,9 @@ var AboutProtectionsHandler = { ); return ( - region === "US" && !alreadyInstalled && languages.data.includes("en-US") + region.toLowerCase() === "us" && + !alreadyInstalled && + languages.data.toLowerCase().includes("en-us") ); },