Index: toolkit/components/search/nsSearchService.js |
diff --git a/toolkit/components/search/nsSearchService.js b/toolkit/components/search/nsSearchService.js |
index 1d84c6e136dc68b87703bb4bbaf5c497a90338d8..a50005eb2541a865284697480b16169d4a3c354a 100644 |
--- a/toolkit/components/search/nsSearchService.js |
+++ b/toolkit/components/search/nsSearchService.js |
@@ -4544,6 +4544,8 @@ SearchService.prototype = { |
this._ensureInitialized(); |
LOG("getVisibleEngines: getting all visible engines"); |
var engines = this._getSortedEngines(false); |
+ // Capped visible engine count at 5 according to https://issues.adblockplus.org/ticket/3128 |
+ engines = engines.slice(0, Math.min(engines.length, 5)); |
aCount.value = engines.length; |
return engines; |
}, |