mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 803873 - startup crash in DocAccessible::Attributes, r=tbsaunde
This commit is contained in:
parent
75db7c3764
commit
f08bd6e51c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user