gecko-dev/accessible/tests
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
..
browser Bug 1415483 - Extend reject-importGlobalProperties to reject any priviliged items already in scope. r=mossop 2018-12-11 21:39:38 +00:00
crashtests Bug 1503964 - Prevent crashes when dealing with crazy table row and column role constructs, r=Jamie 2018-11-08 10:54:09 +00:00
mochitest 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