Bug 404461 - when I open JavaScript Debugger I get assertion: Can't get mTree or mTreeView r=surkov.alexander a=mtschrep

This commit is contained in:
Evan.Yan@Sun.COM 2007-11-22 00:19:49 -08:00
parent b344287c40
commit e0b7f4b2d8

View File

@ -516,17 +516,9 @@ nsIContent *nsAccessible::GetRoleContent(nsIDOMNode *aDOMNode)
NS_IMETHODIMP nsAccessible::Shutdown()
{
mNextSibling = nsnull;
// Make sure none of it's children point to this parent
if (mFirstChild) {
nsCOMPtr<nsIAccessible> current(mFirstChild), next;
while (current) {
nsCOMPtr<nsPIAccessible> privateAcc(do_QueryInterface(current));
current->GetNextSibling(getter_AddRefs(next));
privateAcc->SetParent(nsnull);
current = next;
}
}
// Now invalidate the child count and pointers to other accessibles
// Invalidate the child count and pointers to other accessibles, also make
// sure none of it's children point to this parent
InvalidateChildren();
if (mParent) {
nsCOMPtr<nsPIAccessible> privateParent(do_QueryInterface(mParent));