1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +Components.utils.import("resource://gre/modules/Services.jsm"); 1.5 + 1.6 +function install(data, reason) { 1.7 + Services.prefs.setIntPref("jetpacktest.installed_version", 1); 1.8 +} 1.9 + 1.10 +function startup(data, reason) { 1.11 + Services.prefs.setIntPref("jetpacktest.active_version", 1); 1.12 +} 1.13 + 1.14 +function shutdown(data, reason) { 1.15 + Services.prefs.setIntPref("jetpacktest.active_version", 0); 1.16 +} 1.17 + 1.18 +function uninstall(data, reason) { 1.19 + Services.prefs.setIntPref("jetpacktest.installed_version", 0); 1.20 +}