diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-10 04:00:58 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-10 04:00:58 -0500 |
commit | deea787c2efbb9c89caec8d9efc023ffafe75613 (patch) | |
tree | 6dbe55f7d24e67ecdcc821b8c5492f6c17217852 /toolkit/mozapps/extensions/test/addons/test_bug740612_2/bootstrap.js | |
parent | 37d5300335d81cecbecc99812747a657588c63eb (diff) | |
download | uxp-deea787c2efbb9c89caec8d9efc023ffafe75613.tar.gz |
Import Tycho's Add-on Manager
Diffstat (limited to 'toolkit/mozapps/extensions/test/addons/test_bug740612_2/bootstrap.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_bug740612_2/bootstrap.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/addons/test_bug740612_2/bootstrap.js b/toolkit/mozapps/extensions/test/addons/test_bug740612_2/bootstrap.js new file mode 100644 index 0000000000..2ad4814531 --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_bug740612_2/bootstrap.js @@ -0,0 +1,23 @@ +Components.utils.import("resource://gre/modules/Services.jsm"); + +const VERSION = "1.0"; + +function install(data, reason) { + Services.prefs.setIntPref("bootstraptest.installed_version", VERSION); + Services.prefs.setIntPref("bootstraptest.install_reason", reason); +} + +function startup(data, reason) { + Services.prefs.setIntPref("bootstraptest.active_version", VERSION); + Services.prefs.setIntPref("bootstraptest.startup_reason", reason); +} + +function shutdown(data, reason) { + Services.prefs.setIntPref("bootstraptest.active_version", 0); + Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason); +} + +function uninstall(data, reason) { + Services.prefs.setIntPref("bootstraptest.installed_version", 0); + Services.prefs.setIntPref("bootstraptest.uninstall_reason", reason); +} |