diff options
author | girst <girst@users.noreply.github.com> | 2019-07-09 22:04:02 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2019-07-09 22:06:08 +0200 |
commit | cb644c202d9319a059dc3f96e7de66041ea18ab7 (patch) | |
tree | 99d1528e9bf08c1b396a274c47b0de578c1be1a2 | |
parent | aa3370144d450f4671919eaed205215f27482b7f (diff) | |
download | legacywolf-cb644c202d9319a059dc3f96e7de66041ea18ab7.tar.gz legacywolf-cb644c202d9319a059dc3f96e7de66041ea18ab7.zip |
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');
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | config.js | 6 | ||||
-rw-r--r-- | legacy.manifest (renamed from chrome.manifest) | 0 |
3 files changed, 4 insertions, 6 deletions
@@ -1,8 +1,8 @@ .PHONY: all install -files := chrome.manifest -files += config.js +files := config.js files += defaults/pref/config-prefs.js +files += legacy.manifest files += legacy/BootstrapLoader.jsm files += legacy/RDFDataSource.jsm files += legacy/RDFManifestConverter.jsm @@ -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'); diff --git a/chrome.manifest b/legacy.manifest index 5da5b9e..5da5b9e 100644 --- a/chrome.manifest +++ b/legacy.manifest |