35 lines
910 B
JavaScript
35 lines
910 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
const self = require("sdk/self");
|
|
const { when: unload } = require("sdk/system/unload");
|
|
|
|
const shield = require("./lib/shield/index");
|
|
|
|
const studyConfig = {
|
|
name: self.addonId,
|
|
days: 28,
|
|
surveyUrls: {
|
|
},
|
|
variations: {
|
|
"control": () => {},
|
|
"securityOnboarding": () => {}
|
|
}
|
|
};
|
|
|
|
class ContainersStudy extends shield.Study {
|
|
isEligible () {
|
|
// If the user already has testpilot-containers extension, they are in the
|
|
// Test Pilot experiment, so exclude them.
|
|
return super.isEligible();
|
|
}
|
|
}
|
|
|
|
const thisStudy = new ContainersStudy(studyConfig);
|
|
|
|
if (self.id === "@shield-study-containers") {
|
|
unload((reason) => thisStudy.shutdown(reason));
|
|
}
|
|
|
|
exports.study = thisStudy;
|