Bug 1301385 - input type='search' subrole on OS X is wrong, r=surkov
authorFederico Padua <federico_padua@yahoo.it>
Tue, 12 Sep 2017 15:10:29 -0400
changeset 663375 7b39997a18705b9fe8fccd6bb8e29f57ec23d113
parent 663374 e5414216229f41390263910a8ec2fb73975ba15c
child 663376 d1cd7515c3f8dd589b34f6dda17295032ca7ad01
push id79424
push userbmo:tchiovoloni@mozilla.com
push dateTue, 12 Sep 2017 23:17:54 +0000
reviewerssurkov
bugs1301385
milestone57.0a1
Bug 1301385 - input type='search' subrole on OS X is wrong, r=surkov
accessible/generic/Accessible-inl.h
--- 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));