mlalevic / new-tab-jumpstart

Automatically exported from code.google.com/p/new-tab-jumpstart
0 stars 0 forks source link

Unwanted search engines are shown #137

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the bar that appears after you've done a search, a list of alternate search 
engines are shown. The intention is obviously to show those that are configured 
in Firefox.

However, there are a number of search engines in Firefox I never want to see, 
and I've used the standard Firefox UI to "remove" these. They don't show in my 
search toolbar. However, Firefox doesn't really remove them, it just hides them.

This is easy to fix - patch as follows:

diff --git a/content/bindings/thumbnail.xml b/content/bindings/thumbnail.xml
index a4f2765..9e8a053 100755
--- a/content/bindings/thumbnail.xml
+++ b/content/bindings/thumbnail.xml
@@ -580,7 +580,7 @@
               let ss = Components.classes["@mozilla.org/browser/search-service;1"].
                         getService(Components.interfaces.nsIBrowserSearchService);
               let output = {};
-              let engines = ss.getEngines(output);
+              let engines = ss.getVisibleEngines(output);

               let container = document.getAnonymousElementByAttribute(this, 'anonid', 'searchEnginesContainer');
               //clear:

Original issue reported on code.google.com by ciaran.g...@gmail.com on 2 Mar 2012 at 10:14