Bug 109143. Search datasource should return a valid result set from GetTargets now that we're suppressing re-entrant content builds. r=rjc, sr=hyatt

This commit is contained in:
waterson%netscape.com 2001-11-11 01:16:08 +00:00
Родитель f6de3aa7b5
Коммит 2bc5c0c31e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1174,14 +1174,14 @@ InternetSearchDataSource::GetTargets(nsIRDFResource *source,
if (mInner)
{
rv = mInner->GetTargets(source, property, tv, targets);
// defer search engine discovery until needed; small startup time improvement
if (((source == kNC_SearchEngineRoot) || isSearchURI(source)) && (property == kNC_Child)
&& (mEngineListBuilt == PR_FALSE))
{
DeferredInit();
}
rv = mInner->GetTargets(source, property, tv, targets);
}
if (isSearchURI(source))
{