Bug 404461 - when I open JavaScript Debugger I get assertion: Can't get

mTree or mTreeView
r=surkov.alexander
a=mtschrep


git-svn-id: svn://10.0.0.236/trunk@239825 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Evan.Yan%Sun.COM 2007-11-22 08:19:49 +00:00
parent df8b98dd96
commit 18718918c5

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));