Changeset View
Changeset View
Standalone View
Standalone View
www/firefox/files/patch-addon-search
Show All 34 Lines | @@ -588,7 +588,7 @@ var AddonRepository = { | ||||
addon.version = String(aEntry.current_version.version); | addon.version = String(aEntry.current_version.version); | ||||
if (Array.isArray(aEntry.current_version.files)) { | if (Array.isArray(aEntry.current_version.files)) { | ||||
for (let file of aEntry.current_version.files) { | for (let file of aEntry.current_version.files) { | ||||
- if (file.platform == "all" || file.platform == Services.appinfo.OS.toLowerCase()) { | - if (file.platform == "all" || file.platform == Services.appinfo.OS.toLowerCase()) { | ||||
+ if (file.platform == "all" || file.platform == "linux" || file.platform == Services.appinfo.OS.toLowerCase()) { | + if (file.platform == "all" || file.platform == "linux" || file.platform == Services.appinfo.OS.toLowerCase()) { | ||||
if (file.url) { | if (file.url) { | ||||
addon.sourceURI = NetUtil.newURI(file.url); | addon.sourceURI = NetUtil.newURI(file.url); | ||||
} | } | ||||
diff --git toolkit/mozapps/extensions/internal/XPIProvider.jsm toolkit/mozapps/extensions/internal/XPIProvider.jsm | diff --git toolkit/mozapps/extensions/internal/XPIDatabase.jsm toolkit/mozapps/extensions/internal/XPIDatabase.jsm | ||||
index f70fd8d7e3bd8..81e8cd7764fdf 100644 | index f70fd8d7e3bd8..81e8cd7764fdf 100644 | ||||
--- toolkit/mozapps/extensions/internal/XPIProvider.jsm | --- toolkit/mozapps/extensions/internal/XPIDatabase.jsm | ||||
+++ toolkit/mozapps/extensions/internal/XPIProvider.jsm | +++ toolkit/mozapps/extensions/internal/XPIDatabase.jsm | ||||
@@ -4974,7 +4974,7 @@ AddonInternal.prototype = { | @@ -355,7 +355,7 @@ class AddonInternal { | ||||
// Something is causing errors in here | // Something is causing errors in here | ||||
try { | try { | ||||
for (let platform of this.targetPlatforms) { | for (let platform of this.targetPlatforms) { | ||||
- if (platform.os == Services.appinfo.OS) { | - if (platform.os == Services.appinfo.OS) { | ||||
+ if (platform.os == "Linux" || platform.os == Services.appinfo.OS) { | + if (platform.os == "Linux" || platform.os == Services.appinfo.OS) { | ||||
if (platform.abi) { | if (platform.abi) { | ||||
needsABI = true; | needsABI = true; | ||||
if (platform.abi === abi) | if (platform.abi === abi) |