Bug 1376111 - Fix AXRoleDescription for ARIA heading role. r=MarcoZ

The AXRoleDescription should be "heading" not "AXHeading." Add a new
localized string and use it for roles::HEADING.
This commit is contained in:
Joanmarie Diggs 2017-06-26 00:43:00 -04:00
Родитель 86064e0249
Коммит 2ffc4eeb7d
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -977,6 +977,9 @@ struct RoleDescrComparator
if (mRole == roles::DOCUMENT)
return utils::LocalizedString(NS_LITERAL_STRING("htmlContent"));
if (mRole == roles::HEADING)
return utils::LocalizedString(NS_LITERAL_STRING("heading"));
NSString* subrole = [self subrole];
if (subrole) {

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

@ -40,6 +40,9 @@ alert = alert
alertDialog = alert dialog
article = article
document = document
# The (spoken) role description for the WAI-ARIA heading role
# https://w3c.github.io/aria/core-aam/core-aam.html#role-map-heading
heading = heading
log = log
marquee = marquee
math = math