summaryrefslogtreecommitdiff
path: root/toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2021-03-11 03:37:09 -0600
committerathenian200 <athenian200@outlook.com>2021-03-16 06:20:59 -0500
commit3aa334d0b7de2a554c2234bfbb7a9f4e29dea451 (patch)
tree30cc80fbf716615b0e3afb967c68b507843afb9f /toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm
parentcc8a7e3f7b7d40967d2dd537b6343c87ba9138c7 (diff)
downloaduxp-3aa334d0b7de2a554c2234bfbb7a9f4e29dea451.tar.gz
Issue #1744 - Remove the ability to accept Firefox GUIDS (remove the dual system)
This finally removes the dual-GUID hack. There's nothing as permanent as a temporary solution.
Diffstat (limited to 'toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm')
-rw-r--r--toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm28
1 files changed, 0 insertions, 28 deletions
diff --git a/toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm b/toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm
index a475f7f1fa..4fce84095c 100644
--- a/toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm
+++ b/toolkit/mozapps/extensions/internal/AddonUpdateChecker.jsm
@@ -25,7 +25,6 @@ const XMLURI_PARSE_ERROR = "http://www.mozilla.org/newlayout/xml/pa
const TOOLKIT_ID = "toolkit@mozilla.org";
const FIREFOX_ID = "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}";
-const FIREFOX_APPCOMPATVERSION = "56.9"
const PREF_UPDATE_REQUIREBUILTINCERTS = "extensions.update.requireBuiltInCerts";
const PREF_EM_MIN_COMPAT_APP_VERSION = "extensions.minCompatibleAppVersion";
@@ -523,18 +522,6 @@ function parseJSONManifest(aId, aUpdateKey, aRequest, aManifestData) {
maxVersion: getRequiredProperty(app, "max_version", "string"),
}
}
-#ifdef MOZ_PHOENIX_EXTENSIONS
- else if (FIREFOX_ID in applications) {
- logger.debug("update.json: Dual-GUID targetApplication");
- app = getProperty(applications, FIREFOX_ID, "object");
-
- appEntry = {
- id: FIREFOX_ID,
- minVersion: getRequiredProperty(app, "min_version", "string"),
- maxVersion: getRequiredProperty(app, "max_version", "string"),
- }
- }
-#endif
else if (TOOLKIT_ID in applications) {
logger.debug("update.json: Toolkit targetApplication");
app = getProperty(applications, TOOLKIT_ID, "object");
@@ -558,11 +545,7 @@ function parseJSONManifest(aId, aUpdateKey, aRequest, aManifestData) {
id: TOOLKIT_ID,
minVersion: platformVersion,
#endif
-#if defined(MOZ_PHOENIX) && defined(MOZ_PHOENIX_EXTENSIONS)
- maxVersion: FIREFOX_APPCOMPATVERSION,
-#else
maxVersion: '*',
-#endif
};
}
else {
@@ -825,12 +808,6 @@ function matchesVersions(aUpdate, aAppVersion, aPlatformVersion,
return (Services.vc.compare(aAppVersion, app.minVersion) >= 0) &&
(aIgnoreMaxVersion || (Services.vc.compare(aAppVersion, app.maxVersion) <= 0));
}
-#ifdef MOZ_PHOENIX_EXTENSIONS
- if (app.id == FIREFOX_ID) {
- return (Services.vc.compare(aAppVersion, app.minVersion) >= 0) &&
- (aIgnoreMaxVersion || (Services.vc.compare(aAppVersion, app.maxVersion) <= 0));
- }
-#endif
if (app.id == TOOLKIT_ID) {
result = (Services.vc.compare(aPlatformVersion, app.minVersion) >= 0) &&
(aIgnoreMaxVersion || (Services.vc.compare(aPlatformVersion, app.maxVersion) <= 0));
@@ -888,12 +865,7 @@ this.AddonUpdateChecker = {
if (aIgnoreCompatibility) {
for (let targetApp of update.targetApplications) {
let id = targetApp.id;
-#ifdef MOZ_PHOENIX_EXTENSIONS
- if (id == Services.appinfo.ID || id == FIREFOX_ID ||
- id == TOOLKIT_ID)
-#else
if (id == Services.appinfo.ID || id == TOOLKIT_ID)
-#endif
return update;
}
}