Quantumbar: Suppress a11y focus for the auto-selected result
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
from bug 1522440 comment 8:
(In reply to Mark Banner (:standard8) from comment #7)
Since this might help with knowing where to start fixing
browser_test_focus_urlbar.js
, MarcoZ has pointed out that the current implementation of QuantumBar auto-focuses the first item as soon as someone starts typing in the urlbar. It should only auto-focus after the user has pressed the down arrow (or whatever to get to the results).Yes, I'm aware. The suppressMenuItemEvent stuff in urlbarBindings.xml implements that.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Comment on attachment 9052528 [details]
Bug 1537716 - Quantumbar: Suppress a11y focus for the auto-selected result.
How's this?
Assignee | ||
Comment 3•6 years ago
|
||
Comment on attachment 9052528 [details]
Bug 1537716 - Quantumbar: Suppress a11y focus for the auto-selected result.
Standard8 is telling me that Marco is out sick. Will test this myself as well as I can, then request code review.
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Dao, could you explain the expected effects of this patch? I think I see what you're trying to do, but I've been testing in NVDA and I can't really hear the difference.
From the previous comments regarding suppressMenuItemEvent handling, I was expecting DOMMenuItemInactive/DOMMenuItemActive events to be fired somehow.
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #4)
Dao, could you explain the expected effects of this patch? I think I see what you're trying to do, but I've been testing in NVDA and I can't really hear the difference.
The expected result is that when typing in the urlbar, the autoselected / heuristic result shouldn't get a11y focus and shouldn't be announced. Only when manually changing the selection it should be announced. Also, when changing the selection and then typing, a11y focus should return from the list to the input.
From the previous comments regarding suppressMenuItemEvent handling, I was expecting DOMMenuItemInactive/DOMMenuItemActive events to be fired somehow.
The richlistbox uses these events, we generally don't. We use the aria attributes instead.
Comment 6•6 years ago
|
||
So I've just tested this again and I can't see there's a difference.
For example,
- Enter a few characters (e.g. "tre")
- Let the voice audio stop
- Enter another character ("e")
I get: "e, unknown, combobox collapsed, list, tree search with google 1 of 10".
I did just manage to get it to a state where it didn't tell me the details for every character I entered, but I'm not sure what I did for that, and can't reproduce it.
It did seem to help some more of browser_test_focus_urlbar.js to be passing though.
James, as Marco is out, could you take a look at the patch here and see if it helping and I'm missing something?
Comment 7•6 years ago
|
||
This does seem to work for me. Without the patch, the suggestions list items are reported every time I type. With the patch, the suggestion list items are only reported when I hit down arrow.
(In reply to Mark Banner (:standard8) from comment #6)
I get: "e, unknown, combobox collapsed, list, tree search with google 1 of 10".
That's concerning. It does indeed sound like this is breaking for you; I don't see how you could be missing something. It's just not the behaviour I see.
One thing worth noting is that search engine suggestions seem to be broken for me in local builds, even though I have them enabled. That could well make a difference if, for example, the async updating suggestions cause the accessible focus code to trigger.
Comment 8•6 years ago
|
||
Thank you for testing Jamie, I think I must have been doing something wrong before. I just tried it again and it does indeed work a lot better (and search suggestions are working for me).
Comment 10•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•