Bug 413673. ARIA drop down buttons not being exposed with MSAA button menu role. r=marcoz, a=schrep

This commit is contained in:
aaronleventhal@moonset.net 2008-01-26 18:34:27 -08:00
Родитель 1f58dfc96c
Коммит 10517a2913
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1963,7 +1963,7 @@ NS_IMETHODIMP nsAccessible::GetFinalRole(PRUint32 *aRole)
// For simplicity, any pressed attribute indicates it's a toggle button
*aRole = nsIAccessibleRole::ROLE_TOGGLE_BUTTON;
}
else if (content->AttrValueIs(kNameSpaceID_None, nsAccessibilityAtoms::aria_secret,
else if (content->AttrValueIs(kNameSpaceID_None, nsAccessibilityAtoms::aria_haspopup,
nsAccessibilityAtoms::_true, eCaseMatters)) {
// For button with aria-haspopup="true"
*aRole = nsIAccessibleRole::ROLE_BUTTONMENU;