Bug 1147646 - Crash in mozilla::a11y::DocAccessible::ProcessContentInserted while stability testing, r=davidb

This commit is contained in:
Alexander Surkov 2015-03-27 14:16:53 -04:00
parent b212600c95
commit d0bebd0aeb

View File

@ -1289,11 +1289,13 @@ DocAccessible::ContentInserted(nsIContent* aContainerNode,
// null (document element is inserted or removed).
Accessible* container = aContainerNode ?
GetAccessibleOrContainer(aContainerNode) : this;
if (container) {
// Ignore notification if the container node is no longer in the DOM tree.
mNotificationController->ScheduleContentInsertion(container,
aStartChildNode,
aEndChildNode);
}
}
}
void