Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 Components.utils.import("resource://gre/modules/Services.jsm");
3 function install(data, reason) {
4 Services.prefs.setIntPref("bootstraptest.installed_version", 3);
5 Services.prefs.setIntPref("bootstraptest.install_reason", reason);
6 }
8 function startup(data, reason) {
9 Services.prefs.setIntPref("bootstraptest.active_version", 3);
10 Services.prefs.setIntPref("bootstraptest.startup_reason", reason);
11 }
13 function shutdown(data, reason) {
14 Services.prefs.setIntPref("bootstraptest.active_version", 0);
15 Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason);
16 }
18 function uninstall(data, reason) {
19 Services.prefs.setIntPref("bootstraptest.installed_version", 0);
20 Services.prefs.setIntPref("bootstraptest.uninstall_reason", reason);
21 }