Bug 1285272 - Replace direct use of mRoleMapEntry with calls to ARIARoleMap(). r=yzen
MozReview-Commit-ID: JEuMlNLxD8R
This commit is contained in:
@@ -308,7 +308,7 @@ HTMLTextFieldAccessible::NativeAttributes()
|
||||
nsAutoString type;
|
||||
if (mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::type, type)) {
|
||||
nsAccUtils::SetAccAttr(attributes, nsGkAtoms::textInputType, type);
|
||||
if (!mRoleMapEntry && type.EqualsLiteral("search")) {
|
||||
if (!ARIARoleMap() && type.EqualsLiteral("search")) {
|
||||
nsAccUtils::SetAccAttr(attributes, nsGkAtoms::xmlroles,
|
||||
NS_LITERAL_STRING("searchbox"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user