summaryrefslogtreecommitdiff
path: root/components/addons
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-01-01 17:22:20 -0600
committerMatt A. Tobin <email@mattatobin.com>2022-01-01 17:22:20 -0600
commit0c2396808491278981bec84e8998b29ec19d297d (patch)
tree87fcbc3969f92591fc513a0dcbd41a6dc20eaf0f /components/addons
parent622283c4573df14e4701a455e21336c323f434cc (diff)
downloadaura-central-0c2396808491278981bec84e8998b29ec19d297d.tar.gz
No Issue - Hardcode XAI.platformVersion to 52.9.0 and add XAI.greVersion as the actual version
Diffstat (limited to 'components/addons')
-rw-r--r--components/addons/src/AddonManager.jsm2
-rw-r--r--components/addons/src/AddonRepository.jsm2
-rw-r--r--components/addons/src/AddonUpdateChecker.jsm6
-rw-r--r--components/addons/src/XPIProvider.jsm4
4 files changed, 7 insertions, 7 deletions
diff --git a/components/addons/src/AddonManager.jsm b/components/addons/src/AddonManager.jsm
index 44aa11d65..b1cc0978e 100644
--- a/components/addons/src/AddonManager.jsm
+++ b/components/addons/src/AddonManager.jsm
@@ -779,7 +779,7 @@ var AddonManagerInternal = {
Services.prefs.setCharPref(PREF_EM_LAST_APP_VERSION,
Services.appinfo.version);
Services.prefs.setCharPref(PREF_EM_LAST_PLATFORM_VERSION,
- Services.appinfo.platformVersion);
+ Services.appinfo.greVersion);
Services.prefs.setIntPref(PREF_BLOCKLIST_PINGCOUNTVERSION,
(appChanged === undefined ? 0 : -1));
this.validateBlocklist();
diff --git a/components/addons/src/AddonRepository.jsm b/components/addons/src/AddonRepository.jsm
index 41fb5c06d..8432886b6 100644
--- a/components/addons/src/AddonRepository.jsm
+++ b/components/addons/src/AddonRepository.jsm
@@ -1545,7 +1545,7 @@ this.AddonRepository = {
let appVersion = null;
if (override.appID == TOOLKIT_ID)
- appVersion = aPlatformVersion || Services.appinfo.platformVersion;
+ appVersion = aPlatformVersion || Services.appinfo.greVersion;
else
appVersion = aAppVersion || Services.appinfo.version;
diff --git a/components/addons/src/AddonUpdateChecker.jsm b/components/addons/src/AddonUpdateChecker.jsm
index 4fce84095..b09c221a8 100644
--- a/components/addons/src/AddonUpdateChecker.jsm
+++ b/components/addons/src/AddonUpdateChecker.jsm
@@ -496,7 +496,7 @@ function parseJSONManifest(aId, aUpdateKey, aRequest, aManifestData) {
}
let appID = Services.appinfo.ID;
- let platformVersion = Services.appinfo.platformVersion;
+ let platformVersion = Services.appinfo.greVersion;
// The list of available updates
let updates = getProperty(addon, "updates", "array", []);
@@ -858,7 +858,7 @@ this.AddonUpdateChecker = {
if (!aAppVersion)
aAppVersion = Services.appinfo.version;
if (!aPlatformVersion)
- aPlatformVersion = Services.appinfo.platformVersion;
+ aPlatformVersion = Services.appinfo.greVersion;
for (let update of aUpdates) {
if (Services.vc.compare(update.version, aVersion) == 0) {
@@ -901,7 +901,7 @@ this.AddonUpdateChecker = {
if (!aAppVersion)
aAppVersion = Services.appinfo.version;
if (!aPlatformVersion)
- aPlatformVersion = Services.appinfo.platformVersion;
+ aPlatformVersion = Services.appinfo.greVersion;
let blocklist = Cc["@mozilla.org/extensions/blocklist;1"].
getService(Ci.nsIBlocklistService);
diff --git a/components/addons/src/XPIProvider.jsm b/components/addons/src/XPIProvider.jsm
index 01f2abc69..d3948e8aa 100644
--- a/components/addons/src/XPIProvider.jsm
+++ b/components/addons/src/XPIProvider.jsm
@@ -6207,7 +6207,7 @@ UpdateChecker.prototype = {
if ((this.appVersion &&
Services.vc.compare(this.appVersion, Services.appinfo.version) != 0) ||
(this.platformVersion &&
- Services.vc.compare(this.platformVersion, Services.appinfo.platformVersion) != 0)) {
+ Services.vc.compare(this.platformVersion, Services.appinfo.greVersion) != 0)) {
compatUpdate = AUC.getCompatibilityUpdate(aUpdates, this.addon.version,
false, this.appVersion,
this.platformVersion,
@@ -6400,7 +6400,7 @@ AddonInternal.prototype = {
if (!aAppVersion)
aAppVersion = Services.appinfo.version;
if (!aPlatformVersion)
- aPlatformVersion = Services.appinfo.platformVersion;
+ aPlatformVersion = Services.appinfo.greVersion;
let version;
if (app.id == Services.appinfo.ID) {