Bug 1342490 - DevTools users are temporarily qualified for e10s. r=felipe
MozReview-Commit-ID: 4CZgSMcF1NT
--- a/browser/extensions/e10srollout/bootstrap.js
+++ b/browser/extensions/e10srollout/bootstrap.js
@@ -181,10 +181,20 @@ function getTemporaryDisqualification()
/* If this function returns a non-empty string, it
* means that this particular user should be temporarily
* qualified due to some particular reason.
* If a user shouldn't be qualified, then an empty
* string must be returned.
*/
function getTemporaryQualification() {
+ // Whenever the DevTools toolbox is opened for the first time in a release, it
+ // records this fact in the following pref as part of the DevTools telemetry
+ // system. If this pref is set, then it means the user has opened DevTools at
+ // some point in time.
+ const PREF_OPENED_DEVTOOLS = "devtools.telemetry.tools.opened.version";
+ let hasOpenedDevTools = Preferences.isSet(PREF_OPENED_DEVTOOLS);
+ if (hasOpenedDevTools) {
+ return "devtools";
+ }
+
return "";
}