зеркало из 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
|
@ -618,6 +618,14 @@ InternetSearchDataSource::GetTarget(nsIRDFResource *source,
|
|||
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)
|
||||
{
|
||||
rv = mInner->GetTarget(source, property, tv, target);
|
||||
|
|
|
@ -618,6 +618,14 @@ InternetSearchDataSource::GetTarget(nsIRDFResource *source,
|
|||
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)
|
||||
{
|
||||
rv = mInner->GetTarget(source, property, tv, target);
|
||||
|
|
Загрузка…
Ссылка в новой задаче