Fake out the generic builder so that search containers never appear to be "empty"

This commit is contained in:
rjc%netscape.com 1999-12-06 13:07:03 +00:00
Родитель 2a050c8a51
Коммит 28be607e6e
2 изменённых файлов: 16 добавлений и 0 удалений

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

@ -617,6 +617,14 @@ InternetSearchDataSource::GetTarget(nsIRDFResource *source,
if (NS_FAILED(rv)) return(rv);
source = trueEngine;
}
if (isSearchURI(source) && (property == kNC_Child))
{
// fake out the generic builder (i.e. return anything in this case)
// so that search containers never appear to be empty
*target = source;
return(NS_OK);
}
if (mInner)
{

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

@ -617,6 +617,14 @@ InternetSearchDataSource::GetTarget(nsIRDFResource *source,
if (NS_FAILED(rv)) return(rv);
source = trueEngine;
}
if (isSearchURI(source) && (property == kNC_Child))
{
// fake out the generic builder (i.e. return anything in this case)
// so that search containers never appear to be empty
*target = source;
return(NS_OK);
}
if (mInner)
{