Bug 803873 - startup crash in DocAccessible::Attributes, r=tbsaunde

This commit is contained in:
Alexander Surkov 2012-10-23 00:54:41 +09:00
parent 75db7c3764
commit f08bd6e51c

View File

@ -324,7 +324,9 @@ DocAccessible::Attributes()
nsCOMPtr<nsIPersistentProperties> attributes =
HyperTextAccessibleWrap::Attributes();
if (!mParent)
// No attributes if document is not attached to the tree or if it's a root
// document.
if (!mParent || IsRoot())
return attributes.forget();
// Override ARIA object attributes from outerdoc.