From 7d7b3c1dbe748dc2259c3a111a30358b0c818876 Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Wed, 22 Mar 2017 18:31:18 -0400 Subject: [PATCH] Bug 1346518 - extend Accessible::RemoveChild debugging assertions, part2, r=yzen --- accessible/base/nsAccessibilityService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/accessible/base/nsAccessibilityService.cpp b/accessible/base/nsAccessibilityService.cpp index 31eeb4f47ae1..fa7d89002097 100644 --- a/accessible/base/nsAccessibilityService.cpp +++ b/accessible/base/nsAccessibilityService.cpp @@ -595,6 +595,7 @@ nsAccessibilityService::ContentRemoved(nsIPresShell* aPresShell, } if (child) { + MOZ_DIAGNOSTIC_ASSERT(child->Parent(), "Unattached accessible from tree"); document->ContentRemoved(child->Parent(), aChildNode); #ifdef A11Y_LOG if (logging::IsEnabled(logging::eTree))