diff options
Diffstat (limited to 'toolkit/mozapps/webextensions/test/addons/test_bug655254_2')
-rw-r--r-- | toolkit/mozapps/webextensions/test/addons/test_bug655254_2/bootstrap.js | 9 | ||||
-rw-r--r-- | toolkit/mozapps/webextensions/test/addons/test_bug655254_2/install.rdf | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/toolkit/mozapps/webextensions/test/addons/test_bug655254_2/bootstrap.js b/toolkit/mozapps/webextensions/test/addons/test_bug655254_2/bootstrap.js new file mode 100644 index 000000000..b79648e89 --- /dev/null +++ b/toolkit/mozapps/webextensions/test/addons/test_bug655254_2/bootstrap.js @@ -0,0 +1,9 @@ +Components.utils.import("resource://gre/modules/Services.jsm"); + +function startup(data, reason) { + Services.prefs.setIntPref("bootstraptest.active_version", 1); +} + +function shutdown(data, reason) { + Services.prefs.setIntPref("bootstraptest.active_version", 0); +} diff --git a/toolkit/mozapps/webextensions/test/addons/test_bug655254_2/install.rdf b/toolkit/mozapps/webextensions/test/addons/test_bug655254_2/install.rdf new file mode 100644 index 000000000..71827885f --- /dev/null +++ b/toolkit/mozapps/webextensions/test/addons/test_bug655254_2/install.rdf @@ -0,0 +1,19 @@ +<?xml version="1.0"?> + +<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:em="http://www.mozilla.org/2004/em-rdf#"> + + <Description about="urn:mozilla:install-manifest"> + <em:id>addon2@tests.mozilla.org</em:id> + <em:version>1.0</em:version> + <em:name>Test 2</em:name> + <em:bootstrap>true</em:bootstrap> + <em:targetApplication> + <Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:minVersion>2</em:minVersion> + <em:maxVersion>2</em:maxVersion> + </Description> + </em:targetApplication> + </Description> +</RDF> |