Skip to content

Commit 1c70619

Browse files
committed
Suggestengines only using visible search engines:
* Non-visible, or deleted search engines are not exposed in the UI, and as far as the user is concerned they do not exist. * The default search engines (or other deleted ones) may still be stored (search.json etc). * With this in mind, suggestengines should respect the ability to delete (hide) engines, and only show/use visible search engines.
1 parent 2a1ef22 commit 1c70619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/content/commandline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ const CommandLine = Module("commandline", {
16171617
"stringlist", "google",
16181618
{
16191619
completer: function completer(value) {
1620-
let engines = services.get("search").getEngines({})
1620+
let engines = services.get("search").getVisibleEngines({})
16211621
.filter(function (engine) engine.supportsResponseType("application/x-suggestions+json"));
16221622

16231623
return engines.map(function (engine) [engine.alias, engine.description]);

0 commit comments

Comments
 (0)