Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gecko vbuf: Improvements regarding activating objects #4106

Closed
nvaccessAuto opened this issue May 1, 2014 · 4 comments
Closed

Gecko vbuf: Improvements regarding activating objects #4106

nvaccessAuto opened this issue May 1, 2014 · 4 comments
Assignees
Milestone

Comments

@nvaccessAuto
Copy link

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:

  1. 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.
  2. 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.
@nvaccessAuto
Copy link
Author

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.

@nvaccessAuto
Copy link
Author

Comment 2 by James Teh <jamie@... on 2014-05-01 04:04
In [59d27e1]:

Merge branch 't4106' into next

Incubates #4106.

Changes:
Added labels: incubating

@nvaccessAuto
Copy link
Author

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.

Changes:
Removed labels: incubating
State: closed

@nvaccessAuto
Copy link
Author

Comment 4 by jteh on 2014-05-26 06:22
Changes:
Milestone changed from next to 2014.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants