start shield study AFTER SDK starts the webext

This commit is contained in:
groovecoder 2017-05-02 11:42:14 -05:00
parent 54c598e22e
commit b0c53063d2
2 changed files with 5 additions and 3 deletions

View file

@ -60,7 +60,7 @@ const prefService = require("sdk/preferences/service");
const self = require("sdk/self");
const { Services } = require("resource://gre/modules/Services.jsm");
const ss = require("sdk/simple-storage");
const study = require("./study");
const { study } = require("./study");
const { Style } = require("sdk/stylesheet/style");
const tabs = require("sdk/tabs");
const tabsUtils = require("sdk/tabs/utils");

View file

@ -19,7 +19,9 @@ const studyConfig = {
class ContainersStudy extends shield.Study {
isEligible () {
console.log("ContainersStudy.isEligible()");
// If the user already has testpilot-containers extension, they are in the
// Test Pilot experiment, so exclude them.
return super.isEligible();
}
whenEligible () {
@ -42,4 +44,4 @@ const thisStudy = new ContainersStudy(studyConfig);
unload((reason) => thisStudy.shutdown(reason));
thisStudy.startup(self.loadReason);
exports.study = thisStudy;