summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js')
-rw-r--r--toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js b/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js
new file mode 100644
index 000000000..2449baeb8
--- /dev/null
+++ b/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js
@@ -0,0 +1,17 @@
+Components.utils.import("resource://gre/modules/Services.jsm");
+
+function install(data, reason) {
+ Services.prefs.setIntPref("jetpacktest.installed_version", 1);
+}
+
+function startup(data, reason) {
+ Services.prefs.setIntPref("jetpacktest.active_version", 1);
+}
+
+function shutdown(data, reason) {
+ Services.prefs.setIntPref("jetpacktest.active_version", 0);
+}
+
+function uninstall(data, reason) {
+ Services.prefs.setIntPref("jetpacktest.installed_version", 0);
+}