mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 729861 - Part 2: make the doc accessible check an assert. r=tbsaunde
This commit is contained in:
parent
b7202f8f04
commit
7b8d9cdfa1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user