gecko-dev/accessible/tests/mochitest
Marco Zehe 0a23cd946b Bug 1512411 - Don't expose broken label children accessibles on a XUL toolbarbutton which specifies the label attribute, r=Jamie
In bug 1507365, we introduced the ability of nested label children of toolbar buttons to provide the accessible name for a xul:toolbarbutton element. However, the XBL of xul:toolbarbutton causes the creation of a label accessible even if no xul:label child is present, and only the label attribute is being used. The nsIAccessibleText interface on such labels is, however, completely broken. This causes NVDA's mouse tracking, which always uses the deepest nested child, to fail. As a result, when hovering over Hamburger menu items, the announcement would be wrong, e. g., lag one behind the actual button the mouse is hovering over.

To fix this, we only accept xul:label children if they come from real XUL markup, not from the label attribute and the XBL creating the label. This means that some of the test changes from bug 1507365 have to be reverted to accommodate the new old behavior. But the new test for an actual label child still passes.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 08:20:02 +00:00
..
actions Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
aom Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
attributes Bug 1104947 - Complete the accessibility mapping for aria-current, r=Jamie 2018-11-02 06:40:47 +00:00
bounds Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
editabletext Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
elm Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
events Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
focus Bug 1474108 - Convert listbox accessibility tests to use the "richlistbox" element. r=surkov 2018-07-17 17:58:37 +01:00
hittest Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
hyperlink
hypertext Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
jsat Bug 1196668 - Make images without alt generate a replaced box regardless of src. r=bz 2018-11-09 18:10:14 +01:00
name Bug 1507365 - Allow labels inside toolbarbuttons to participate in accessible name calculation, r=Jamie 2018-11-22 05:57:48 +00:00
pivot Bug 1511955 - Don't traverse into children without hypertext interfaces. r=Jamie 2018-12-10 03:30:21 +00:00
relations Bug 1429940 - Part 1 - Use the first "label" element instead of the one inside "caption" to describe the "groupbox" element. r=Jamie 2018-11-15 12:05:09 +00:00
role Bug 1501273 - Expose an html:form element as a landmark role if it has an accessible name, r=Jamie 2018-11-02 01:06:56 +00:00
scroll Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
selectable Bug 1480060: Support aria-multiselectable on role tablist. r=MarcoZ 2018-08-13 06:28:35 +00:00
states Bug 1509222 - XUL toolbarbutton with checked="true' but not type="checkbox" doesn't get the pressed state, r=Jamie 2018-11-22 22:39:51 +00:00
table Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
text Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
textattrs Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
textcaret Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
textrange Bug 1052866 - Expose IAccessibleText on tables, rows, etc., r=tbsaunde. Bustage fix by MarcoZ. 2018-10-26 11:07:27 +02:00
textselection Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
tree Bug 1512411 - Don't expose broken label children accessibles on a XUL toolbarbutton which specifies the label attribute, r=Jamie 2018-12-14 08:20:02 +00:00
treeupdate Bug 1512411 - Don't expose broken label children accessibles on a XUL toolbarbutton which specifies the label attribute, r=Jamie 2018-12-14 08:20:02 +00:00
value Bug 1499947 - Part 1 - Remove XULProgressMeterAccessible and its base template class. r=Jamie 2018-11-20 14:10:38 +00:00
.eslintrc.js Bug 1455676 part 2. Remove nsIDOMNode usage from accessible/. r=surkov 2018-05-29 22:58:47 -04:00
a11y.ini
actions.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
attributes.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
autocomplete.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
common.js Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika 2018-12-11 21:39:40 +00:00
dumbfile.zip
events.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
formimage.png
grid.js Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki 2018-02-09 11:17:09 -05:00
layout.js Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
letters.gif
longdesc_src.html
moz.build
moz.png
name.js
pivot.js Bug 1467712 - Simplify calls to ok to use only 2 arguments;r=Standard8 2018-11-01 13:48:48 +00:00
relations.js Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8 2018-08-18 18:13:14 -07:00
role.js Bug 1501273 - Expose an html:form element as a landmark role if it has an accessible name, r=Jamie 2018-11-02 01:06:56 +00:00
selectable.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
states.js Bug 1474108 - Convert listbox accessibility tests to use the "richlistbox" element. r=surkov 2018-07-17 17:58:37 +01:00
table.js Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
test_aria_token_attrs.html
test_bug420863.html Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
test_descr.html
test_nsIAccessibleDocument.html Bug 1476142 part 4. Remove some unnecessary QIs on window in various parts of the tree. r=kmag 2018-08-02 15:26:48 -04:00
test_nsIAccessibleImage.html
test_OuterDocAccessible.html Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
text.js Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
treeview.css
treeview.js Bug 1508142 - Remove remains of tree cell-based selection code. r=bzbarsky,bgrins 2018-11-22 09:59:02 +00:00
value.js