Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: toolkit/components/search/nsSearchService.js

Issue 29329014: Issue 3128 - The default search engine is removed if it was one of those removed by issue 3047 (ABB… (Closed)
Patch Set: Created Oct. 9, 2015, 1:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mobile/android/app/mobile.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
},
« no previous file with comments | « mobile/android/app/mobile.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld