Bug 1304164 - Temporarily disable e10s for users on the Russian locale. r=mconley draft
authorFelipe Gomes <felipc@gmail.com>
Tue, 20 Sep 2016 17:10:26 -0300
changeset 415658 9b61c4535a8321bc06d1f0f229e482628f97ac00
parent 415657 56ba61609c1d030eb2c2d6e989ec78ceb3c472d1
child 531663 75795da1f7aa44da4043d7b231a67b2f4f149357
push id29927
push userfelipc@gmail.com
push dateTue, 20 Sep 2016 20:11:10 +0000
reviewersmconley
bugs1304164
milestone49.0.1
Bug 1304164 - Temporarily disable e10s for users on the Russian locale. r=mconley MozReview-Commit-ID: 8lDRDtIjZOz
browser/extensions/e10srollout/bootstrap.js
--- a/browser/extensions/e10srollout/bootstrap.js
+++ b/browser/extensions/e10srollout/bootstrap.js
@@ -160,10 +160,20 @@ function optedOut() {
 
 /* If this function returns a non-empty string, it
  * means that this particular user should be temporarily
  * disqualified due to some particular reason.
  * If a user shouldn't be disqualified, then an empty
  * string must be returned.
  */
 function getTemporaryDisqualification() {
+  let applicationLanguage =
+    Cc["@mozilla.org/chrome/chrome-registry;1"]
+      .getService(Ci.nsIXULChromeRegistry)
+      .getSelectedLocale("global")
+      .split("-")[0];
+
+  if (applicationLanguage == "ru") {
+    return "ru";
+  }
+
   return "";
 }