зеркало из https://github.com/mozilla/gecko-dev.git
Bug 429811 - Tag container isn't updated immediately when bookmark is removed (r=mano, a=mconnor)
This commit is contained in:
Родитель
0c12f1b939
Коммит
b151718f4d
|
@ -2432,10 +2432,12 @@ nsNavHistoryQueryResultNode::ClearChildren(PRBool aUnregister)
|
|||
nsresult
|
||||
nsNavHistoryQueryResultNode::Refresh()
|
||||
{
|
||||
// Some query can return other queries, in this case we could call Refresh
|
||||
// for each child query causing a major slowdown. We should not refresh
|
||||
// nested queries since we are already refreshing the containining one.
|
||||
if (mOptions->ResultType() == nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS)
|
||||
// Some queries can return other queries. In this case calling Refresh
|
||||
// for each child query could cause a major slowdown. We should not refresh
|
||||
// nested queries that are not currently expanded, since we are already
|
||||
// refreshing the containing one.
|
||||
if (mOptions->ResultType() == nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS &&
|
||||
!mExpanded)
|
||||
return NS_OK;
|
||||
|
||||
// Ignore refreshes when there is a batch, EndUpdateBatch will do a refresh
|
||||
|
|
Загрузка…
Ссылка в новой задаче