Bug 613174 Stop changing refcount of nsDocument during Traverse r=surkov a=davidb

This commit is contained in:
Neil Rashbrook 2010-11-18 19:45:45 +00:00
parent dd1df119bd
commit 55b9aa3cb0

View File

@ -167,8 +167,7 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(nsDocAccessible)
// However at some point we may push <body> to implement the interfaces and
// return nsDocAccessible to inherit from nsAccessibleWrap.
nsCOMPtr<nsIDOMXULDocument> xulDoc(do_QueryInterface(mDocument));
if (xulDoc)
if (mDocument && mDocument->IsXUL())
status = nsAccessible::QueryInterface(aIID, (void**)&foundInterface);
else
status = nsHyperTextAccessible::QueryInterface(aIID,