diff options
author | girst <girst@users.noreply.github.com> | 2019-07-09 21:03:40 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2019-07-09 21:03:40 +0200 |
commit | aa3370144d450f4671919eaed205215f27482b7f (patch) | |
tree | f09de18402ccd62cdd4c5bd5d642e9605828854f | |
parent | e0222c6ba41459b5638ecf880fdc88d70128f6f9 (diff) | |
download | legacywolf-aa3370144d450f4671919eaed205215f27482b7f.tar.gz legacywolf-aa3370144d450f4671919eaed205215f27482b7f.zip |
fix chrome.manifest loading for mozilla68
the chrome.manifest inside the install directory is not loaded any
longer by default; see bugzil.la/1543761
-rw-r--r-- | config.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -8,6 +8,12 @@ try { "ALLOW_LEGACY_EXTENSIONS": true, }; + let manifest = Cc['@mozilla.org/file/directory_service;1'] + .getService(Ci.nsIProperties).get('GreD', Ci.nsIFile); + manifest.append('chrome.manifest'); + Components.manager.QueryInterface(Ci.nsIComponentRegistrar) + .autoRegister(manifest); + const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm'); const {BootstrapLoader} = Cu.import('chrome://legacy/content/BootstrapLoader.jsm'); AddonManager.addExternalExtensionLoader(BootstrapLoader); |