toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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("jetpacktest.installed_version", 1);
     5 }
     7 function startup(data, reason) {
     8   Services.prefs.setIntPref("jetpacktest.active_version", 1);
     9 }
    11 function shutdown(data, reason) {
    12   Services.prefs.setIntPref("jetpacktest.active_version", 0);
    13 }
    15 function uninstall(data, reason) {
    16   Services.prefs.setIntPref("jetpacktest.installed_version", 0);
    17 }

mercurial