From f08bd6e51c4a932408bc124814ce7867729295a4 Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Tue, 23 Oct 2012 00:54:41 +0900 Subject: [PATCH] Bug 803873 - startup crash in DocAccessible::Attributes, r=tbsaunde --- accessible/src/generic/DocAccessible.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/accessible/src/generic/DocAccessible.cpp b/accessible/src/generic/DocAccessible.cpp index b7d80b10afa..2544c3434b6 100644 --- a/accessible/src/generic/DocAccessible.cpp +++ b/accessible/src/generic/DocAccessible.cpp @@ -324,7 +324,9 @@ DocAccessible::Attributes() nsCOMPtr 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.