Closed
Bug 1427167
Opened 8 years ago
Closed 8 years ago
check the open search XML files and update te search provider list appropriately on startup.
Categories
(Thunderbird :: Search, enhancement)
Thunderbird
Search
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: unicorn.consulting, Unassigned)
References
Details
Since V45 adding a search provider has required the removal of the existing search.json.mozlz4 file to force regeneration including the correct list of search providers.
Thunderbird should be able to detect changes to the opensearch providers and automatically update the list, without the kludge of deleting a file.
Comment 2•8 years ago
|
||
(In reply to Matt from comment #0)
> Since V45 adding a search provider has required the removal of the existing
> search.json.mozlz4 file to force regeneration including the correct list of
> search providers.
You should be more specific about how you are adding the search plugin. If you are doing it by just dropping an xml file in the profile folder, then this is no longer supported. (And versions 57.0.1 and later won't take these files into account anymore, even if you delete the search.json.mozlz4 file.)
Adding a search plugin using the Services.search.* APIs should work and not require any hand modification in the profile.
This bug sounds invalid to me.
Flags: needinfo?(florian)
Comment 3•8 years ago
|
||
Hmm, so what's the official way to add a search engine? I found "DuckDuck" via "Find more search engines". But what do I do if I want to add http://dle.rae.es/ to the search engines? I happen to have an (old) diccionario-drae.xml installed (must have been installed before FF 57). There are also two different(1) drae.xml flying around the M-C source tree.
Flags: needinfo?(florian)
Comment 4•8 years ago
|
||
Comment #3 refers to FF and it should have been "two different(!)" RAE files.
Comment 5•8 years ago
|
||
Hmm, in TB and FF I could run this in the error/browser console:
Services.search.addEngine("file://C:/mozilla-source/mozilla-central/mobile/locales/searchplugins/drae.xml", null, "", {});
Note: You need to enable browser chrome and add-on debugging toolboxes first, see https://developer.mozilla.org/en-US/docs/Tools/Browser_Console.
So since there is an "official" (not quite obvious) way to add search engines, let's close this bug as per comment #2.
P.S.: Deleting search.json.mozlz4 in FF 57 is absolutely lethal, it will obliterate your carefully crafted collection of search engine, so DON'T!
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(florian)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•