Bug 1346518 - extend Accessible::RemoveChild debugging assertions, part2, r=yzen

This commit is contained in:
Alexander Surkov 2017-03-22 18:31:18 -04:00
parent 2773e5508d
commit 7d7b3c1dbe

View File

@ -595,6 +595,7 @@ nsAccessibilityService::ContentRemoved(nsIPresShell* aPresShell,
} }
if (child) { if (child) {
MOZ_DIAGNOSTIC_ASSERT(child->Parent(), "Unattached accessible from tree");
document->ContentRemoved(child->Parent(), aChildNode); document->ContentRemoved(child->Parent(), aChildNode);
#ifdef A11Y_LOG #ifdef A11Y_LOG
if (logging::IsEnabled(logging::eTree)) if (logging::IsEnabled(logging::eTree))