зеркало из https://github.com/mozilla/gecko-dev.git
Fake out the generic builder so that search containers never appear to be "empty"
This commit is contained in:
Родитель
2a050c8a51
Коммит
28be607e6e
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче