From d1c80010b1fb1e352fb8754ace534e8dbe8cf954 Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 9 Jul 2019 22:06:56 +0200 Subject: [PATCH] switch to resource:// protocol bring the patch closer to the then-upstream comm-central. might have the negative side-effect of being detectable by websites according to: https://developer.mozilla.org/en-US/docs/Mozilla/Chrome_Registration --- config.js | 2 +- legacy.manifest | 2 +- legacy/BootstrapLoader.jsm | 2 +- legacy/RDFManifestConverter.jsm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index 2514b7b..98e6a6f 100644 --- a/config.js +++ b/config.js @@ -13,7 +13,7 @@ try { .autoRegister(FileUtils.getFile('GreD', ['legacy.manifest'])); const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm'); - const {BootstrapLoader} = Cu.import('chrome://legacy/content/BootstrapLoader.jsm'); + const {BootstrapLoader} = Cu.import('resource://legacy/BootstrapLoader.jsm'); AddonManager.addExternalExtensionLoader(BootstrapLoader); } catch(ex) { Components.utils.reportError(ex.message); diff --git a/legacy.manifest b/legacy.manifest index 5da5b9e..74999b3 100644 --- a/legacy.manifest +++ b/legacy.manifest @@ -1 +1 @@ -content legacy legacy/ +resource legacy legacy/ diff --git a/legacy/BootstrapLoader.jsm b/legacy/BootstrapLoader.jsm index d9dc4c8..d2a4598 100644 --- a/legacy/BootstrapLoader.jsm +++ b/legacy/BootstrapLoader.jsm @@ -13,7 +13,7 @@ XPCOMUtils.defineLazyModuleGetters(this, { AddonInternal: "resource://gre/modules/addons/XPIDatabase.jsm", Blocklist: "resource://gre/modules/Blocklist.jsm", ConsoleAPI: "resource://gre/modules/Console.jsm", - InstallRDF: "chrome://legacy/content/RDFManifestConverter.jsm", + InstallRDF: "resource://legacy/RDFManifestConverter.jsm", Services: "resource://gre/modules/Services.jsm", }); diff --git a/legacy/RDFManifestConverter.jsm b/legacy/RDFManifestConverter.jsm index 6eda163..cb01f6a 100644 --- a/legacy/RDFManifestConverter.jsm +++ b/legacy/RDFManifestConverter.jsm @@ -6,7 +6,7 @@ var EXPORTED_SYMBOLS = ["InstallRDF"]; ChromeUtils.defineModuleGetter(this, "RDFDataSource", - "chrome://legacy/content/RDFDataSource.jsm"); + "resource://legacy/RDFDataSource.jsm"); const RDFURI_INSTALL_MANIFEST_ROOT = "urn:mozilla:install-manifest"; -- 2.39.3