You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by jteh on 2014-05-01 03:25
On Facebook, the Requests, Messages and Notifications buttons contain a span which can have a width and height of 0 if there are no requests, etc. The text of the button is inside this span, but because it's an icon, the text is hidden. Unfortunately, this means that when you press enter on this in NVDA browse mode, NVDA clicks in the wrong place. I'd argue this is questionable authoring--if the text isn't visible, it should be aria-label or just off-screen--but regardless, it's happening in the wild. This is probably happening elsewhere too.
To fix this, there are two improvements we can make to _activateNVDAObject in the Gecko vbuf:
Don't try to click nodes with a width and height of 0. While we're at it, we should probably exclude invisible nodes too.
As we walk up the ancestors, try doAction before clicking, rather than only trying doAction on the deepest object. We should still stop once we've successfully called doAction or clicked.
The text was updated successfully, but these errors were encountered:
Comment 1 by James Teh <jamie@... on 2014-05-01 04:04
In [481c2b6]:
In browse mode in Mozilla applications, pressing enter on a button, etc. no longer fails to activate it (or activates the wrong control) in certain cases such as the buttons at the top of Facebook.
_activateNVDAObject in the Gecko vbuf now tries doAction on ancestors before it tries clicking. It tries doAction even if the button is off-screen/invisible. Also, it does not try to click objects with the invisible state or a width/height of 0.
Re #4106.
Comment 3 by James Teh <jamie@... on 2014-05-26 06:14
In [5abca08]:
In browse mode in Mozilla applications, pressing enter on a button, etc. no longer fails to activate it (or activates the wrong control) in certain cases such as the buttons at the top of Facebook.
_activateNVDAObject in the Gecko vbuf now tries doAction on ancestors before it tries clicking. It tries doAction even if the button is off-screen/invisible. Also, it does not try to click objects with the invisible state or a width/height of 0.
Fixes #4106.
Reported by jteh on 2014-05-01 03:25
On Facebook, the Requests, Messages and Notifications buttons contain a span which can have a width and height of 0 if there are no requests, etc. The text of the button is inside this span, but because it's an icon, the text is hidden. Unfortunately, this means that when you press enter on this in NVDA browse mode, NVDA clicks in the wrong place. I'd argue this is questionable authoring--if the text isn't visible, it should be aria-label or just off-screen--but regardless, it's happening in the wild. This is probably happening elsewhere too.
To fix this, there are two improvements we can make to _activateNVDAObject in the Gecko vbuf:
The text was updated successfully, but these errors were encountered: