зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
86064e0249
Коммит
2ffc4eeb7d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче