Bug 1304164 - Temporarily disable e10s for users on the Russian locale. r=mconley
MozReview-Commit-ID: 8lDRDtIjZOz
--- 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 "";
}