diff --git a/study.js b/study.js index b8a7e90..fc5323c 100644 --- a/study.js +++ b/study.js @@ -1,6 +1,8 @@ const self = require("sdk/self"); -const shield = require("./lib/shield/index"); const { when: unload } = require("sdk/system/unload"); +const tabs = require("sdk/tabs"); + +const shield = require("./lib/shield/index"); const studyConfig = { name: self.addonId, @@ -17,15 +19,21 @@ const studyConfig = { class ContainersStudy extends shield.Study { isEligible () { + console.log("ContainersStudy.isEligible()"); } whenEligible () { + console.log("ContainersStudy.whenEligible()"); } whenInstalled () { + console.log("ContainersStudy.whenInstalled()"); + console.log("shield variation: ", this.variation); + tabs.open(`data:text/html, Thank you for helping us study Containers in Firefox. You are in the ${this.variation} variation.`); } cleanup(reason) { + console.log("ContainersStudy.cleanup()"); console.log(reason); } } @@ -33,3 +41,5 @@ class ContainersStudy extends shield.Study { const thisStudy = new ContainersStudy(studyConfig); unload((reason) => thisStudy.shutdown(reason)); + +thisStudy.startup(self.loadReason);