mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Fix bug # 15225: The search datasource needs to figure out what datasets are available whenever a search is to be performed, not just when its asked about what datasets it knows about. Review: waterson@netscape.com
This commit is contained in:
parent
7d1672ab74
commit
b62bcaf7d9
@ -533,7 +533,9 @@ InternetSearchDataSource::GetTargets(nsIRDFResource *source,
|
||||
|
||||
if (mInner)
|
||||
{
|
||||
if ((source == kNC_SearchRoot) && (property == kNC_Child) && (mEngineListBuilt == PR_FALSE))
|
||||
// defer search engine discovery until needed; small startup time improvement
|
||||
if (((source == kNC_SearchRoot) || isSearchURI(source)) && (property == kNC_Child)
|
||||
&& (mEngineListBuilt == PR_FALSE))
|
||||
{
|
||||
// get available search engines
|
||||
nsFileSpec nativeDir;
|
||||
|
@ -533,7 +533,9 @@ InternetSearchDataSource::GetTargets(nsIRDFResource *source,
|
||||
|
||||
if (mInner)
|
||||
{
|
||||
if ((source == kNC_SearchRoot) && (property == kNC_Child) && (mEngineListBuilt == PR_FALSE))
|
||||
// defer search engine discovery until needed; small startup time improvement
|
||||
if (((source == kNC_SearchRoot) || isSearchURI(source)) && (property == kNC_Child)
|
||||
&& (mEngineListBuilt == PR_FALSE))
|
||||
{
|
||||
// get available search engines
|
||||
nsFileSpec nativeDir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user