зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
f6de3aa7b5
Коммит
2bc5c0c31e
|
@ -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))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче