Bug 1301385 - input type='search' subrole on OS X is wrong; r?surkov
This patch makes Accessible::IsSearchbox() check for nsGkAtoms::search value
instead of nsGkAtoms::textInputType as noted in the bug description.
MozReview-Commit-ID: DSNrNwUwREa
--- a/accessible/generic/Accessible-inl.h
+++ b/accessible/generic/Accessible-inl.h
@@ -72,17 +72,17 @@ Accessible::SetRoleMapEntry(const nsRole
inline bool
Accessible::IsSearchbox() const
{
const nsRoleMapEntry* roleMapEntry = ARIARoleMap();
return (roleMapEntry && roleMapEntry->Is(nsGkAtoms::searchbox)) ||
(mContent->IsHTMLElement(nsGkAtoms::input) &&
mContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::type,
- nsGkAtoms::textInputType, eCaseMatters));
+ nsGkAtoms::search, eCaseMatters));
}
inline bool
Accessible::HasGenericType(AccGenericType aType) const
{
const nsRoleMapEntry* roleMapEntry = ARIARoleMap();
return (mGenericTypes & aType) ||
(roleMapEntry && roleMapEntry->IsOfType(aType));