diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-04-23 14:52:50 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-04-23 14:52:50 +0300 |
commit | be2b3635ad7f21582a5cfd5a25fc4ec41653c1c7 (patch) | |
tree | 2efcee5cff17dc0dd8cf9237ddaede584c7b22b1 /toolkit/mozapps/extensions/test/addons | |
parent | bccb9c1708f007ada1ea8c4879db88a587f0a450 (diff) | |
download | UXP-be2b3635ad7f21582a5cfd5a25fc4ec41653c1c7.tar UXP-be2b3635ad7f21582a5cfd5a25fc4ec41653c1c7.tar.gz UXP-be2b3635ad7f21582a5cfd5a25fc4ec41653c1c7.tar.lz UXP-be2b3635ad7f21582a5cfd5a25fc4ec41653c1c7.tar.xz UXP-be2b3635ad7f21582a5cfd5a25fc4ec41653c1c7.zip |
Fix accessing the bootstrap methods when they are declared in the new lexical scope
Diffstat (limited to 'toolkit/mozapps/extensions/test/addons')
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_bootstrap_const/bootstrap.js | 5 | ||||
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_bootstrap_const/install.rdf | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/addons/test_bootstrap_const/bootstrap.js b/toolkit/mozapps/extensions/test/addons/test_bootstrap_const/bootstrap.js new file mode 100644 index 000000000..498b76526 --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_bootstrap_const/bootstrap.js @@ -0,0 +1,5 @@ +Components.utils.import("resource://gre/modules/Services.jsm");
+
+const install = function() {
+ Services.obs.notifyObservers(null, "addon-install", "");
+}
\ No newline at end of file diff --git a/toolkit/mozapps/extensions/test/addons/test_bootstrap_const/install.rdf b/toolkit/mozapps/extensions/test/addons/test_bootstrap_const/install.rdf new file mode 100644 index 000000000..af3a749ce --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_bootstrap_const/install.rdf @@ -0,0 +1,24 @@ +<?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>bootstrap@tests.mozilla.org</em:id>
+ <em:version>1.0</em:version>
+ <em:bootstrap>true</em:bootstrap>
+
+ <!-- Front End MetaData -->
+ <em:name>Test Bootstrap</em:name>
+ <em:description>Test Description</em:description>
+
+ <em:targetApplication>
+ <Description>
+ <em:id>xpcshell@tests.mozilla.org</em:id>
+ <em:minVersion>1</em:minVersion>
+ <em:maxVersion>1</em:maxVersion>
+ </Description>
+ </em:targetApplication>
+
+ </Description>
+</RDF>
\ No newline at end of file |