Bug 1304164 - Temporarily disable e10s for users on the Russian locale. r=mconley a=ritu
authorFelipe Gomes <felipc@gmail.com>
Thu, 22 Sep 2016 20:52:31 -0300
changeset 355703 44cea7e90ea6522502fad2aaed960280a0b2aba9
parent 355702 c4115bc9a4e4a61821019bceac80cb9a6f46b23a
child 355704 bc17447fefc995c71a6a97a5a5a0f19783df5ad1
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, ritu
bugs1304164
milestone51.0a2
Bug 1304164 - Temporarily disable e10s for users on the Russian locale. r=mconley a=ritu MozReview-Commit-ID: BqJLMAOq2ZT
browser/extensions/e10srollout/bootstrap.js
--- a/browser/extensions/e10srollout/bootstrap.js
+++ b/browser/extensions/e10srollout/bootstrap.js
@@ -165,10 +165,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 "";
 }