From 35d5410cfaec8a87d27da3cb304055f5766c72c5 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 23 May 2018 05:19:16 +0000 Subject: gecko: restore support for native extensions after r470668/r470672 PR: 226919 --- www/waterfox/files/patch-addon-search | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'www/waterfox/files/patch-addon-search') diff --git a/www/waterfox/files/patch-addon-search b/www/waterfox/files/patch-addon-search index 27bffc98e887..a2fabaa456b7 100644 --- a/www/waterfox/files/patch-addon-search +++ b/www/waterfox/files/patch-addon-search @@ -42,7 +42,7 @@ index f70fd8d7e3bd8..81e8cd7764fdf 100644 addon.isPlatformCompatible = Array.some(nodes, function(aNode) { let text = aNode.textContent.toLowerCase().trim(); - return text == "all" || text == Services.appinfo.OS.toLowerCase(); -+ return text == "all" || text == "linux"; ++ return text == "all" || text == "linux" || text == Services.appinfo.OS.toLowerCase(); }); break; case "install": @@ -51,7 +51,7 @@ index f70fd8d7e3bd8..81e8cd7764fdf 100644 let os = node.getAttribute("os").trim().toLowerCase(); // If the os is not ALL and not the current OS then ignore this xpi - if (os != "all" && os != Services.appinfo.OS.toLowerCase()) -+ if (os != "all" && os != "linux") ++ if (os != "all" && os != "linux" && os != Services.appinfo.OS.toLowerCase()) break; } @@ -64,7 +64,7 @@ index f70fd8d7e3bd8..81e8cd7764fdf 100644 try { for (let platform of this.targetPlatforms) { - if (platform.os == Services.appinfo.OS) { -+ if (platform.os == "Linux") { ++ if (platform.os == "Linux" || platform.os == Services.appinfo.OS) { if (platform.abi) { needsABI = true; if (platform.abi === abi) -- cgit v1.2.3