summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js
blob: 2449baeb85d74d2bc09f767ac7f8e9c2ce1a3a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}