зеркало из https://github.com/mozilla/pjs.git
Bug 628603 - Crash in nsDocAccessible::CacheChildrenInSubtree [@ nsAccessNode::IsContent() ], r=davidb, a=blocking2.x+
This commit is contained in:
Родитель
e577fe5cf0
Коммит
804f5a843c
|
@ -1953,8 +1953,9 @@ nsDocAccessible::CacheChildrenInSubtree(nsAccessible* aRoot)
|
||||||
PRUint32 count = aRoot->GetChildCount();
|
PRUint32 count = aRoot->GetChildCount();
|
||||||
for (PRUint32 idx = 0; idx < count; idx++) {
|
for (PRUint32 idx = 0; idx < count; idx++) {
|
||||||
nsAccessible* child = aRoot->GetChildAt(idx);
|
nsAccessible* child = aRoot->GetChildAt(idx);
|
||||||
|
NS_ASSERTION(child, "Illicit tree change while tree is created!");
|
||||||
// Don't cross document boundaries.
|
// Don't cross document boundaries.
|
||||||
if (child->IsContent())
|
if (child && child->IsContent())
|
||||||
CacheChildrenInSubtree(child);
|
CacheChildrenInSubtree(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче