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:
rjc%netscape.com 1999-10-01 04:02:07 +00:00
parent 7d1672ab74
commit b62bcaf7d9
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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;