Partial backout of bug 371156 until we can deal with breakage of accessible object hierarchy that it caused (regression bug 397032).

This commit is contained in:
aaronleventhal@moonset.net 2007-09-24 11:23:03 -07:00
parent ecb8184e90
commit 56a9edff1b

View File

@ -1429,7 +1429,7 @@ NS_IMETHODIMP nsAccessibilityService::GetAccessible(nsIDOMNode *aNode,
// We don't do this for <body>, <html>, <window>, <dialog> etc. which
// correspond to the doc accessible and will be created in any case
if (!newAcc && content->Tag() != nsAccessibilityAtoms::body && content->GetParent() &&
(content->IsFocusable() || content->GetID() ||
(content->IsFocusable() ||
(isHTML && nsAccUtils::HasListener(content, NS_LITERAL_STRING("click"))) ||
content->HasAttr(kNameSpaceID_WAIProperties, nsAccessibilityAtoms::describedby) ||
content->HasAttr(kNameSpaceID_WAIProperties, nsAccessibilityAtoms::labelledby) ||