Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Sylvestre Ledru 0aa6f03cf3 Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D67574

--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Eitan Isaacson 9c101448f7 Bug 1407724 - Provide role of TEXT_CONTAINER to descendants of "strong" aria roles. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D66793

--HG--
extra : moz-landing-system : lando
2020-03-27 16:00:09 +00:00
Marco Zehe 0948ee96fa Bug 1625153 - Implement the WAI-ARIA 1.2 code role, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D68432

--HG--
extra : moz-landing-system : lando
2020-03-26 21:26:15 +00:00
Marco Zehe df16c0598f Bug 1608969 - Add new ARIA 1.3 comment role, r=Jamie
This adds both the role as well as calculation of the posinset, setsize, and level calculation if not provided by the author.

Differential Revision: https://phabricator.services.mozilla.com/D64590

--HG--
extra : moz-landing-system : lando
2020-03-01 19:35:06 +00:00
Marco Zehe 93ff1614a5 Bug 1608965 Part 2 - Add ARIA suggestion role, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64546

--HG--
extra : moz-landing-system : lando
2020-03-01 19:37:33 +00:00
Marco Zehe 02b10b3195 Bug 1608965 Part 1 - Add ARIA mark role, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64545

--HG--
extra : moz-landing-system : lando
2020-03-01 19:38:16 +00:00
Maliha Islam f6e1118c76 Bug 1540813 - Support new ARIA roles insertion and deletion, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D42911

--HG--
extra : moz-landing-system : lando
2019-08-21 20:36:39 +00:00
Marco Zehe de9c156fb7 Bug 1501182 - Expose WAI-ARIA landmarks as landmark roles through accessibility APIs, r=Jamie
This change will bring us on par with what Chrome does. However, if the author makes an error in applying a landmark role to an interactive element, or other element where the landmark role is illegal, as defined in the [WAI-ARIA in HTML specification section 2](https://www.w3.org/TR/html-aria/#document-conformance-requirements-for-use-of-aria-attributes-in-html), the accessible properties will now be that of the landmark role, no longer that of the native host language element. This might make some elements less accessible due to author error than before, but we currently do not know of examples in the wild that actually expose this problem. This could only be solved by applying the rules from said table also in the user agents, but that is not specified anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D41923

--HG--
extra : moz-landing-system : lando
2019-08-15 01:25:56 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Marco Zehe 50ba1dd30c Bug 1104947 - Complete the accessibility mapping for aria-current, r=Jamie
We already mapped aria-current to the correct attribute, but we did so unconditionally unless the value was false or undefined. However, if the value was an invalid token, it would not be mapped to "true" as per spec. Now, any bogus value for aria-current will be mapped as if the author had specified "true".

In addition, this patch adds aria-current to the known set of attributes with rules, which causes NSAccessibilityService::MustBeAccessible to make sure an accessible gets created if aria-current is set, even if that accessible is a html:span element. This fixes bug 1365904.

Differential Revision: https://phabricator.services.mozilla.com/D10331

--HG--
extra : moz-landing-system : lando
2018-11-02 06:40:47 +00:00
Sylvestre Ledru dd5741407b Bug 1498586 - Add clang-format off to avoid the reformatting of the data structures r=Ehsan
Too hard/impossible for the tool to format correctly these structs

Differential Revision: https://phabricator.services.mozilla.com/D8569

--HG--
extra : moz-landing-system : lando
2018-10-12 20:48:24 +00:00
Nicholas Nethercote 7de7b7aae3 Bug 1451169 - Change nsRoleMapEntry::roleAtom from `nsStaticAtom**` to `nsStaticAtom* const`. r=davidb
--HG--
extra : rebase_source : 3a7101328e9ffcb6adeef42c98afa26d0531ca1c
2018-04-03 10:55:33 +10:00
James Teh 0912c08892 Bug 1480060: Support aria-multiselectable on role tablist. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D3076

--HG--
extra : moz-landing-system : lando
2018-08-13 06:28:35 +00:00
Alexander Surkov 32562a67f0 Bug 1349223 - cut aria-hidden tree, r=yzen 2018-07-04 10:20:49 -04:00
Cosmin Sabou aeb2ada3aa Backed out changeset b2df5de436bd (bug 1349223) for permafailling marionette harness on test_accessibility.py. CLOSED TREE 2018-06-25 22:50:58 +03:00
Alexander Surkov 3da9b86da8 Bug 1349223 - cut aria-hidden tree, r=yzen 2018-06-25 14:17:01 -04:00
Joanmarie Diggs df8c297289 Bug 1466822 - Implement support for new blockquote, caption, and paragraph ARIA roles r=Jamie
* Create BLOCKQUOTE internal role (also needed for correct exposure of
  blockquote element on ATK)
* Add new ARIA roles to internal ARIA map
* Add new roles to existing ARIA roles mochitest and update blockquote
  element test to reflect mapping to the new internal role
2018-06-05 09:54:00 +03:00
Tiberius Oros bd7f417d6a Backed out changeset 671ec6415311 (bug 1466822) for failing test_txtcntr.html on a CLOSED TREE 2018-06-05 19:10:13 +03:00
Joanmarie Diggs 9ef9fae7c4 Bug 1466822 - Implement support for new blockquote, caption, and paragraph ARIA roles. r=surkov
* Create BLOCKQUOTE internal role (also needed for correct exposure of
  blockquote element on ATK)
* Add new ARIA roles to internal ARIA map
* Add new roles to existing ARIA roles mochitest and update blockquote
  element test to reflect mapping to the new internal role
2018-06-05 06:46:00 -04:00
Ciure Andrei 873d562bc3 Backed out 8 changesets (bug 1451169) on request from njn a=backout
Backed out changeset b92f856e15a8 (bug 1451169)
Backed out changeset 348e825756fa (bug 1451169)
Backed out changeset 624d82428726 (bug 1451169)
Backed out changeset 4d51610ca08e (bug 1451169)
Backed out changeset bb76a9589717 (bug 1451169)
Backed out changeset c145fbd03947 (bug 1451169)
Backed out changeset 6d36289e0f54 (bug 1451169)
Backed out changeset 914fb7cd9fc3 (bug 1451169)

--HG--
extra : histedit_source : 94de6631919f895dec422bc0e564f5baf885ba4a%2C18f52c6c11d3064d3137a6847575effb7d407894
2018-04-11 11:22:05 +03:00
Nicholas Nethercote 30c7ab35fe Bug 1451169 - Change nsRoleMapEntry::roleAtom from `nsStaticAtom**` to `nsStaticAtom* const`. r=davidb
And likewise for AttrCharacteristics::attributeName.

MozReview-Commit-ID: DwGzWCCKcVP

--HG--
extra : rebase_source : ac595af0b0da2cee36b5aecf4474880fbe993f11
2018-04-03 10:55:33 +10:00
Nicholas Nethercote d41188c796 Bug 1445117 - Remove duplicates from nsGkAtoms. r=froydnj
In each case, the atom had an obvious name and a weird name. Where possible, I
kept the obvious name and commented out the weird name, viz:

- `mixed` over `_mixed` for "mixed"
- `el` over `el_` for "el"
- `other` over `other_` for "other"
- `remote` over `Remote` for "remote"

But for several of them I didn't do that, because the weird name is used
within the HTML5 parser -- which is a huge pain to modify because it involves
code generated by code from another repo -- so I kept the weird name and
commented out the obvious name, viz:

- `list_` over `list` for "list"
- `svgSwitch` over `_switch` for "switch"
- `set_` over `set` for "set"

MozReview-Commit-ID: Jp3CpdWXNDm

--HG--
extra : rebase_source : 421ce5316772f1951488307e81f2ceee696d363d
2018-03-14 10:27:25 +11:00
Joanmarie Diggs b33dfc1490 Bug 1433891 - ARIA documents should be easily distinguishable from native ones r=marcoz
Gecko has two document roles: roles::DOCUMENT_FRAME and roles::DOCUMENT.
However, the former was not being used at all; the latter was being used
for both ARIA documents and for the native document container. We can
therefore fix this issue by repurposing the unused internal role:

* Rename the role from roles::DOCUMENT_FRAME to roles::NON_NATIVE_DOCUMENT,
  and add clarification to the doc strings in Role.h
* Ensure load events are still emitted for ARIA documents (bug 759833)
* Update the ARIA-document mochitests to reflect the above changes
* Change the ATK role mapping for roles::DOCUMENT (the native container)
  from ATK_ROLE_DOCUMENT_FRAME TO ATK_ROLE_DOCUMENT_WEB.
* On IAccessible2, map roles::NON_NATIVE_DOCUMENT to ROLE_SYSTEM_DOCUMENT.
  This should cause there to be no change in behavior for that platform.
* On macOS map roles::NON_NATIVE_DOCUMENT to NSAccessibilityGroupRole
  with a subrole of AXDocument.

--HG--
extra : rebase_source : bb6bacfa08c0d22e4e52a25d309d15b2a913320d
2018-02-06 12:13:00 +02:00
Joanmarie Diggs 40555b75ce Bug 1432513 - Implement ARIA Graphics roles r=surkov
Recognize the graphics-document, graphics-object, and graphics-symbol
ARIA roles, mapping them to the DOCUMENT, GROUPING, and GRAPHIC internal
roles respectively.
2018-01-23 09:37:00 +02:00
Emilio Cobos Álvarez c8eb630ebe Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez ffdf5d2cb5 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez c0959b2955 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W

--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Emilio Cobos Álvarez 74b31155f7 Bug 1423167: Move most attribute-related methods from nsIContent to Element. r=bz
MozReview-Commit-ID: 6WXqNiODttD
2017-12-06 16:05:59 +01:00
Nicholas Nethercote 8ad99dd7fa Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj.
It's a sub-class of nsAtom, useful for cases where you know you are dealing
exclusively with static atoms. The nice thing about it is that you can use
raw nsStaticAtom pointers instead of RefPtr<>. (In fact, the AddRef/Release
implementations ensure that we'll crash if we use RefPtr<nsStaticAtom>.)

MozReview-Commit-ID: 4Q6QHX5h44V

--HG--
extra : rebase_source : e4237f85b4821b684db0ef84d1f9c5e17cdee428
2017-10-27 10:31:13 +11:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Marco Zehe 3e9bbd265b Bug 1396626 - Expose aria-haspopup tokens dialog, listbox, menu and tree as object attributes. r=surkov
MozReview-Commit-ID: 7iuo89tuGOu

--HG--
extra : rebase_source : 044da8a2ce31a6e894bb205bae6b86d6fce9976a
2017-09-05 15:15:09 +02:00
Joanmarie Diggs 99540643ac Bug 1379098 - ARIA combobox should map to AXComboBox. r=marcoz
Create a new internal role EDITCOMBOBOX so that we can distinguish
comboboxes with a text input (which is the case for the ARIA role)
from those which consist of only a popup button and associated list
(which is the case for the select element with a size of 1). Also
change the type of ARIA combobox from kGenericAccType to eCombobox
so that IsCombobox() will return true for both EDITCOMBOBOX and
COMBOBOX. Lastly, call IsCombobox() rather than role() when assigning
internal roles to descendants of comboboxes and emitting accessibility
events.

--HG--
extra : rebase_source : 3e31f2e2423d6cc7697b03c9afb3b1f8c136675a
2017-07-11 11:16:00 +02:00
Sebastian Hengst adabab920b Backed out changeset ed18b5a361f9 (bug 1379098) for timing out in a11y's accessible/tests/mochitest/events/test_valuechange.html and browser-chrome's accessible/tests/browser/e10s/browser_caching_value.js. r=backout 2017-07-10 16:02:38 +02:00
Joanmarie Diggs 55edd4314f Bug 1379098 - ARIA combobox should map to AXComboBox. r=marcoz
Create a new internal role EDITCOMBOBOX so that we can distinguish
comboboxes with a text input (which is the case for the ARIA role)
from those which consist of only a popup button and associated list
(which is the case for the select element with a size of 1). Also
change the type of ARIA combobox from kGenericAccType to eCombobox
so that IsCombobox() will return true for both EDITCOMBOBOX and
COMBOBOX. Lastly, call IsCombobox() rather than role() when assigning
internal roles to descendants of comboboxes.
2017-07-10 04:26:00 +02:00
Joanmarie Diggs 4cc658fc52 Bug 1378160 - The ARIA region role should be exposed as a landmark; not a pane. r=MarcoZ
Create a new internal REGION role which maps to the generic landmark role
of each platform accessibility API. Update the internal mapping of region
from roles::PANE and kGenericAccType to roles::REGION and eLandmark. Also
change the AXSubrole of region from "AXDocumentRegion" to "AXLandmarkRegion",
the latter being what is specified in the Core AAM 1.1 and used in Safari.
2017-07-04 18:10:00 -04:00
Joanmarie Diggs dd969f27d8 Bug 1356049 - Map ARIA figure role. r=marcoz
Add the figure role to the ARIA role map so that it's exposed on all
platforms. Expose "figure" as the AXRoleDescription for macOS.
2017-07-04 04:27:00 +02:00
Joanmarie Diggs b66b7af7bc Bug 1355921 - Elements with a defined, non-false value for aria-current should expose ATK_STATE_ACTIVE. r=marcoz
Create states::CURRENT and add it to the list of "universal" (global)
ARIA states. Map states::CURRENT to ATK_STATE_ACTIVE and emit accessible
state-change notifications when the value of aria-current is modified.
2017-07-03 17:02:00 +02:00
Joanmarie Diggs 35af6f703f Bug 1355954 - Focusable separators should implement the accessible value interface. r=MarcoZ
Add eHasValueMinMaxIfFocusable to the ARIA role map so that we can
take the accessible element's interactive state into account when
determining if the value interface should be supported.
2017-06-28 07:11:00 -04:00
Joanmarie Diggs 132af70e13 Bug 1374316 - Add aria-readonly to several roles as per ARIA 1.1. r=surkov
In ARIA 1.1, aria-readonly became a supported property of switch,
menuitemcheckbox, menuitemradio, and radiogroup.

aria-checked is not, and has not been, a supported property of menuitem.
This property should only be supported on checkable subclasses of the
ARIA menuitem role, namely menuitemcheckbox and menuitemradio.
2017-06-19 11:09:23 -04:00
Joanmarie Diggs ee236a6c7f Bug 1357042 - Implement or update support for exposure of aria-orientation. r=surkov
In ARIA 1.1, "undefined" was added as a possible value of aria-orientation,
and the default value for the combobox and treegrid roles. Therefore, remove
states::VERTICAL from the nsRoleMapEntry for these two roles and update the
associated mochitest expectations. The rest of the ARIA roles which support
aria-orientation have the correct defaults and test coverage.
2017-06-20 05:32:00 +02:00
Joanmarie Diggs 638636b4ef Bug 1373786 - Mapping of "article" role and element is incorrect for AX API and ATK. r=surkov 2017-06-16 16:07:23 -04:00
Joanmarie Diggs 88ed2a9207 Bug 1358417 - Use ATK_ROLE_DESCRIPTION_TERM for "term" role and "dt" element. r=surkov 2017-06-16 14:02:55 -04:00
Joanmarie Diggs c306e05c88 Bug 1343537 - Implement ARIA DPUB extension. r=surkov
--HG--
extra : rebase_source : 38af7ac790cb60d952b1dc2885f50fc9c15cdea6
2017-06-13 15:06:08 -04:00
Marco Zehe e37a92d3e7 Bug 1335734 - Make sure ARIA role 'directory' exposes the READONLY state so it doesn't get treated as a widget, r=surkov
MozReview-Commit-ID: 9J90gANe9Ib

--HG--
extra : rebase_source : bdfa84fa07864453ee7e1b4559b90e7d196b7da0
2017-02-02 06:46:00 +01:00
Alexander Surkov 4657cb7a0f Bug 1310794 - implement aria-details and aria-errormessage, r=davidb 2016-10-25 13:51:27 -04:00
Alexander Surkov 30c2b9aee8 Bug 1294086 - implement ARIA feed role, r=yzen 2016-08-10 14:07:29 -04:00
Michael Li 7778ca1358 Bug 1285272 - Add functionality in ARIAMap to use integer index instead of a raw pointer for role map entries. r=yzen
MozReview-Commit-ID: 8FduVyUkJic

--HG--
extra : rebase_source : 2685c6fdfc3b2f4851da18539aa298093f858779
2016-07-18 11:52:44 -04:00
Nicholas Nethercote 7cb4896c8f Bug 1255655 - Const-ify sWAIRoleMaps. r=tbsaunde.
--HG--
extra : rebase_source : 1274cdb26bbc41456e91b67849733bfb5bc89401
2016-03-11 13:13:01 +11:00
Alexander Surkov 4a93a11cd7 Bug 1251941 - aria::GetRoleMap should take element, r=davidb 2016-03-03 07:45:47 -05:00