Bug 729861 - Part 2: make the doc accessible check an assert. r=tbsaunde

This commit is contained in:
Hub Figuière 2012-02-24 12:36:01 -08:00
parent b7202f8f04
commit 7b8d9cdfa1

View File

@ -854,9 +854,10 @@ nsAccessible::ChildAtPoint(PRInt32 aX, PRInt32 aY,
nsDocAccessible* contentDocAcc = GetAccService()->
GetDocAccessible(content->OwnerDoc());
// contentDocAcc in some circumstances can be NULL
// See https://bugzilla.mozilla.org/show_bug.cgi?id=729861
NS_ENSURE_TRUE(contentDocAcc, fallbackAnswer);
// contentDocAcc in some circumstances can be NULL. See bug 729861
NS_ASSERTION(contentDocAcc, "could not get the document accessible");
if (!contentDocAcc)
return fallbackAnswer;
nsAccessible* accessible = contentDocAcc->GetAccessibleOrContainer(content);
if (!accessible)