Commit Graph

34 Commits

Author SHA1 Message Date
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
78545b8343 Bug 982125 - make HTML5 <mark> accessible, r=Jamie
Mark the html:mark element to the new ROLE_MARK, which currently maps the same as role_text, and the xml-role of "mark", make sure we expose the roleDescription on Mac, and adjust the test so it tests that the attributes don't pick up any unexpected color for this particular element. So, the background attribute is empty when there is no unexpected, non-default background color.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 05:34:15 +00:00
Sylvestre Ledru
993c03acb1 Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31769

--HG--
extra : moz-landing-system : lando
2019-05-22 22:37:14 +00:00
Paolo Amadini
b2a83ffc85 Bug 1499947 - Part 1 - Remove XULProgressMeterAccessible and its base template class. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D12144

--HG--
extra : rebase_source : 81275b233770a7e9716a2b811a08060fc5006e1b
2018-11-20 14:10:38 +00:00
Marco Zehe
a7b776042d Bug 1501273 - Expose an html:form element as a landmark role if it has an accessible name, r=Jamie
If html:form has a name given via ARIA, expose it as a landmark to platform APIS that require it. At the time of this submission, this is the case for ATK.

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

--HG--
extra : moz-landing-system : lando
2018-11-02 01:06:56 +00:00
James Teh
2a45f8f49d Bug 903187: Map HTML ins/del to accessible roles. r=MarcoZ
IA2 now has IA2_ROLE_CONTENT_INSERTION/DELETION.
Mac has AXInsert/DeleteStyleGroup subroles.
We now create accessibles for these elements and expose the appropriate role.
For ATK, there is no specific role for these, so we just use the generic ATK_ROLE_SECTION.

MozReview-Commit-ID: 2khzRa7BQ6z

--HG--
extra : rebase_source : e1c84bdef9a23b225e9870660050790df94c4beb
2018-07-27 16:40:50 +10:00
Paolo Amadini
dc49387df8 Bug 1472555 - Part 5 - Remove the listbox layout. r=bz,surkov
MozReview-Commit-ID: Bx1p1nTurCz

--HG--
extra : rebase_source : 6910e500f30eb42b45032dbab85a3dc9c014390b
2018-07-18 11:23:32 +01: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
Tim Nguyen
4fd514d97b Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: Cbj7vZcrDrL

--HG--
extra : rebase_source : 9b844911072ab2cc526f4ad16838e83f44a230da
2018-02-09 21:54:42 +00:00
arthur.iakab
f58e902071 Backed out 2 changesets (bug 1429573) for failing reftest on reftest/tests/editor/reftests/xul/number-3.xul on a CLOSED TREE
Backed out changeset 75364898f5f6 (bug 1429573)
Backed out changeset fe69b415f45b (bug 1429573)
2018-02-09 23:27:59 +02:00
Tim Nguyen
9235487cb3 Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: D7cMQyriekm

--HG--
extra : rebase_source : 189fe22d8b9619707753773b92f83bbdef3a247a
2018-02-09 19:24:11 +00:00
Csoregi Natalia
2d4c080565 Backed out 2 changesets (bug 1429573) for reftest failures /tests/reftest/tests/editor/reftests/xul/number-3.xul. on a CLOSED TREE
Backed out changeset bd6892535d35 (bug 1429573)
Backed out changeset 1c398da94994 (bug 1429573)
2018-02-09 16:56:39 +02:00
Tim Nguyen
96e5c9837c Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: 6sb1zcGv4k9

--HG--
extra : rebase_source : 35636617336551fb3aadc8fb321c66b5e5993239
2018-02-09 13:53:49 +00: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
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
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
c306e05c88 Bug 1343537 - Implement ARIA DPUB extension. r=surkov
--HG--
extra : rebase_source : 38af7ac790cb60d952b1dc2885f50fc9c15cdea6
2017-06-13 15:06:08 -04:00
Michael Li
05864e3606 Bug 1288508 - Make nsIAccessible* interfaces builtinclass so they can be static_cast'ed to xpcAccessibleGeneric. r=yzenevich 2016-07-26 15:55:00 +02:00
Ryan VanderMeulen
7484f8bc74 Backed out changeset 1bbebd48ca62 (bug 1288508) for causing mochitest-a11y timeouts on a CLOSED TREE.
--HG--
extra : amend_source : 1aa38d54fbbecc945b22a69fd78e877dfe17fa1a
2016-07-22 17:59:03 -04:00
Michael Li
8d3499e3d5 Bug 1288508 - Make nsIAccessible* interfaces builtinclass so they can be static_cast'ed to xpcAccessibleGeneric. r=yzen 2016-07-21 12:57:00 -04:00
Marco Zehe
194d876eb2 Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov
This implements the roles, states, and action names, but omits the state change event part that is currently made impossible by us recreating the html:summary accessible once it toggles the html:details open state. This is probably due to some reframing causing us to recreate the accessible. Suggest to move that to a separate bug and implement the basics now and the event later.

MozReview-Commit-ID: FEi5RIXdkG0

--HG--
extra : rebase_source : 9b65bc28483238e2339561e6494ccc2884cb7c42
2016-06-01 17:07:56 +02:00
Frédéric Wang
bacdba5501 Bug 1175164 - Do not expose MathML semantics element in the accessibility tree. r=surkov
--HG--
extra : rebase_source : 4974b9f27e9ec09b666fce81fd9a45d7b7f757b1
2015-06-16 16:15:00 +02:00
Alexander Surkov
7f0a2bcc08 Bug 1113153 - use 'paragraph' role for paragraphs only, introduce 'text' role for small text containers, r=marcoz 2015-05-13 11:40:15 -04:00
Marco Zehe
b48c48870d Bug 1149118 - Expose radio group with the correct role on OS X, r=surkov 2015-03-30 15:37:09 +02:00
Jonathan Wei
41e34ee857 Bug 1001634 - Add basic MathML accessibility implementation, r=surkov, marcoz, patch=jwei, surkov 2015-03-09 08:16:12 -04:00
Marco Zehe
871757e5e6 Bug 1136563 - ARIA 1.1: Support role 'switch', r=surkov 2015-02-26 14:47:15 +01:00
Birunthan Mohanathas
3111e08278 Bug 1028563 - Part 2: Rename accessible/{public => interfaces}/. rs=surkov
--HG--
rename : accessible/public/ia2/IA2Marshal.def => accessible/interfaces/ia2/IA2Marshal.def
rename : accessible/public/ia2/Makefile.in => accessible/interfaces/ia2/Makefile.in
rename : accessible/public/ia2/moz.build => accessible/interfaces/ia2/moz.build
rename : accessible/public/moz.build => accessible/interfaces/moz.build
rename : accessible/public/msaa/AccessibleMarshal.def => accessible/interfaces/msaa/AccessibleMarshal.def
rename : accessible/public/msaa/ISimpleDOMDocument.idl => accessible/interfaces/msaa/ISimpleDOMDocument.idl
rename : accessible/public/msaa/ISimpleDOMNode.idl => accessible/interfaces/msaa/ISimpleDOMNode.idl
rename : accessible/public/msaa/ISimpleDOMText.idl => accessible/interfaces/msaa/ISimpleDOMText.idl
rename : accessible/public/msaa/Makefile.in => accessible/interfaces/msaa/Makefile.in
rename : accessible/public/msaa/moz.build => accessible/interfaces/msaa/moz.build
rename : accessible/public/nsIAccessibilityService.h => accessible/interfaces/nsIAccessibilityService.h
rename : accessible/public/nsIAccessible.idl => accessible/interfaces/nsIAccessible.idl
rename : accessible/public/nsIAccessibleApplication.idl => accessible/interfaces/nsIAccessibleApplication.idl
rename : accessible/public/nsIAccessibleCaretMoveEvent.idl => accessible/interfaces/nsIAccessibleCaretMoveEvent.idl
rename : accessible/public/nsIAccessibleDocument.idl => accessible/interfaces/nsIAccessibleDocument.idl
rename : accessible/public/nsIAccessibleEditableText.idl => accessible/interfaces/nsIAccessibleEditableText.idl
rename : accessible/public/nsIAccessibleEvent.idl => accessible/interfaces/nsIAccessibleEvent.idl
rename : accessible/public/nsIAccessibleHideEvent.idl => accessible/interfaces/nsIAccessibleHideEvent.idl
rename : accessible/public/nsIAccessibleHyperLink.idl => accessible/interfaces/nsIAccessibleHyperLink.idl
rename : accessible/public/nsIAccessibleHyperText.idl => accessible/interfaces/nsIAccessibleHyperText.idl
rename : accessible/public/nsIAccessibleImage.idl => accessible/interfaces/nsIAccessibleImage.idl
rename : accessible/public/nsIAccessiblePivot.idl => accessible/interfaces/nsIAccessiblePivot.idl
rename : accessible/public/nsIAccessibleRelation.idl => accessible/interfaces/nsIAccessibleRelation.idl
rename : accessible/public/nsIAccessibleRetrieval.idl => accessible/interfaces/nsIAccessibleRetrieval.idl
rename : accessible/public/nsIAccessibleRole.idl => accessible/interfaces/nsIAccessibleRole.idl
rename : accessible/public/nsIAccessibleSelectable.idl => accessible/interfaces/nsIAccessibleSelectable.idl
rename : accessible/public/nsIAccessibleStateChangeEvent.idl => accessible/interfaces/nsIAccessibleStateChangeEvent.idl
rename : accessible/public/nsIAccessibleStates.idl => accessible/interfaces/nsIAccessibleStates.idl
rename : accessible/public/nsIAccessibleTable.idl => accessible/interfaces/nsIAccessibleTable.idl
rename : accessible/public/nsIAccessibleTableChangeEvent.idl => accessible/interfaces/nsIAccessibleTableChangeEvent.idl
rename : accessible/public/nsIAccessibleText.idl => accessible/interfaces/nsIAccessibleText.idl
rename : accessible/public/nsIAccessibleTextChangeEvent.idl => accessible/interfaces/nsIAccessibleTextChangeEvent.idl
rename : accessible/public/nsIAccessibleTextRange.idl => accessible/interfaces/nsIAccessibleTextRange.idl
rename : accessible/public/nsIAccessibleTypes.idl => accessible/interfaces/nsIAccessibleTypes.idl
rename : accessible/public/nsIAccessibleValue.idl => accessible/interfaces/nsIAccessibleValue.idl
rename : accessible/public/nsIAccessibleVirtualCursorChangeEvent.idl => accessible/interfaces/nsIAccessibleVirtualCursorChangeEvent.idl
rename : accessible/public/nsIXBLAccessible.idl => accessible/interfaces/nsIXBLAccessible.idl
2014-06-22 10:16:39 -07:00