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