diff options
author | girst <girst@users.noreply.github.com> | 2019-07-09 22:06:56 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2019-07-09 22:06:56 +0200 |
commit | d1c80010b1fb1e352fb8754ace534e8dbe8cf954 (patch) | |
tree | 1df5ab941ee03d8e91002913005f719a9c3b57bf | |
parent | cb644c202d9319a059dc3f96e7de66041ea18ab7 (diff) | |
download | legacywolf-d1c80010b1fb1e352fb8754ace534e8dbe8cf954.tar.gz legacywolf-d1c80010b1fb1e352fb8754ace534e8dbe8cf954.zip |
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
-rw-r--r-- | config.js | 2 | ||||
-rw-r--r-- | legacy.manifest | 2 | ||||
-rw-r--r-- | legacy/BootstrapLoader.jsm | 2 | ||||
-rw-r--r-- | legacy/RDFManifestConverter.jsm | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -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"; |