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 429824 7b39997a18705b9fe8fccd6bb8e29f57ec23d113
parent 429823 e5414216229f41390263910a8ec2fb73975ba15c
child 429825 d1cd7515c3f8dd589b34f6dda17295032ca7ad01
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs1301385
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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));