From aa3370144d450f4671919eaed205215f27482b7f Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 9 Jul 2019 21:03:40 +0200 Subject: [PATCH] fix chrome.manifest loading for mozilla68 the chrome.manifest inside the install directory is not loaded any longer by default; see bugzil.la/1543761 --- config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.js b/config.js index f3688e2..fa98b6d 100644 --- a/config.js +++ b/config.js @@ -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); -- 2.39.3