зеркало из https://github.com/mozilla/pjs.git
Bug 412751 ? Crash after clearing browsing history with query result nodes (for ondrej, r=dietrich, a=schrep)
This commit is contained in:
Родитель
b88bd34615
Коммит
97023b0927
|
@ -2391,6 +2391,12 @@ nsNavHistoryQueryResultNode::Refresh()
|
|||
if (mBatchInProgress)
|
||||
return NS_OK;
|
||||
|
||||
// This is not a root node but it does not have a parent - this means that
|
||||
// the node has already been cleared and it is now called, because it was
|
||||
// left in a local copy of the observers array.
|
||||
if (mIndentLevel > -1 && !mParent)
|
||||
return NS_OK;
|
||||
|
||||
if (! mExpanded) {
|
||||
// when we are not expanded, we don't update, just invalidate and unhook
|
||||
ClearChildren(PR_TRUE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче