diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/browser/addons/browser_update1_2')
4 files changed, 50 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/bootstrap.js b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/bootstrap.js new file mode 100644 index 000000000..ff5b80ae8 --- /dev/null +++ b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/bootstrap.js @@ -0,0 +1,12 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ + */ + +function install(data, reason) {} +function startup(data, reason) { + Components.utils.import("resource://gre/modules/Services.jsm"); + Services.ppmm.loadProcessScript( + "resource://my-addon/frame-script.js", false); +} +function shutdown(data, reason) {} +function uninstall(data, reason) {} diff --git a/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/chrome.manifest b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/chrome.manifest new file mode 100644 index 000000000..f1a7ccee1 --- /dev/null +++ b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/chrome.manifest @@ -0,0 +1 @@ +resource my-addon . diff --git a/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/frame-script.js b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/frame-script.js new file mode 100644 index 000000000..e35092a55 --- /dev/null +++ b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/frame-script.js @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ + */ + +Components.utils.import("resource://gre/modules/Services.jsm"); +Services.cpmm.sendAsyncMessage("my-addon-2"); diff --git a/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/install.rdf b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/install.rdf new file mode 100644 index 000000000..2fae190b4 --- /dev/null +++ b/toolkit/mozapps/extensions/test/browser/addons/browser_update1_2/install.rdf @@ -0,0 +1,31 @@ +<?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>update1@tests.mozilla.org</em:id> + <em:version>2.0</em:version> + <em:bootstrap>true</em:bootstrap> + + <em:targetApplication> + <Description> + <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> + <em:minVersion>0.3</em:minVersion> + <em:maxVersion>*</em:maxVersion> + </Description> + </em:targetApplication> + + <em:targetApplication> + <Description> + <em:id>toolkit@mozilla.org</em:id> + <em:minVersion>0</em:minVersion> + <em:maxVersion>*</em:maxVersion> + </Description> + </em:targetApplication> + + <!-- Front End MetaData --> + <em:name>Update Tests</em:name> + + </Description> +</RDF> |