mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
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:
parent
b344287c40
commit
e0b7f4b2d8
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user