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:53:19 -0300
changeset 350383 90ca0cd662a48c64aba640d85b0fd0214d1bef4e
parent 350382 2075230b4a4226bf1ef1705fe583a09cd217f64d
child 350384 529536d337799e80fcb6a8266508a9e525806b68
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, ritu
bugs1304164
milestone50.0
Bug 1304164 - Temporarily disable e10s for users on the Russian locale. r=mconley a=ritu MozReview-Commit-ID: INc5AruVCgg
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 "";
 }