From cb644c202d9319a059dc3f96e7de66041ea18ab7 Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 9 Jul 2019 22:04:02 +0200 Subject: don't overwrite chrome.manifest this hopefully makes the monkey patch update persistent. Note: instead of using FileUtils, this would be another method: const {Services} = Cu.import('resource://gre/modules/Services.jsm'); let manifest = Services.dirsvc.get('GreD', Ci.nsIFile); manifest.append('legacy.manifest'); --- config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'config.js') diff --git a/config.js b/config.js index fa98b6d..2514b7b 100644 --- a/config.js +++ b/config.js @@ -8,11 +8,9 @@ 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'); + const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm'); Components.manager.QueryInterface(Ci.nsIComponentRegistrar) - .autoRegister(manifest); + .autoRegister(FileUtils.getFile('GreD', ['legacy.manifest'])); const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm'); const {BootstrapLoader} = Cu.import('chrome://legacy/content/BootstrapLoader.jsm'); -- cgit v1.2.3