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