Closed Bug 1501897 Opened 6 years ago Closed 6 years ago

Permission settings: Only the permission selector for the selected website should be tabbable

Categories

(Firefox :: Settings UI, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 65
Tracking Status
firefox65 --- verified

People

(Reporter: Jamie, Assigned: prathiksha)

References

Details

(Keywords: access)

Attachments

(1 file)

STR: 1. Grant permission for at least two websites to send notifications. 2. Open Firefox Options. 3. Select Privacy, then under Permissions -> Notifications, press Settings. 4. Tab to the list of sites, then press down arrow to select the second site in the list. 5. Press tab. Expected: Focus should land on the selector (menulist.website-status) for the second site. Actual: Focus lands on the selector for the first site. 6. Press tab again. Expected: Focus should land on the Remove Website button. Actual: Focus lands on the selector for the second website. Since there's a list with selectable items, it doesn't make sense for tab to focus controls associated with other (not selected) websites. For screen readers, this is extremely confusing and could result in a user changing permissions for the wrong site. Aside from that, it also results in a lot of unnecessary tab stops. Fixing this might be tricky because XUL. In HTML terms, only the permission selector for the currently selected site should have tabindex="0". The others should all be focusable, but not in the tab order (tabindex="-1"). Unfortunately, this is not an HTML control, and IIRC, XUL controls don't support being set to focusable but not tabbable (equivalent to HTML tabindex="-1").
(In reply to James Teh [:Jamie] from comment #0) > Fixing this might be tricky because XUL. In HTML terms, only the permission > selector for the currently selected site should have tabindex="0". The > others should all be focusable, but not in the tab order (tabindex="-1"). > Unfortunately, this is not an HTML control, and IIRC, XUL controls don't > support being set to focusable but not tabbable (equivalent to HTML > tabindex="-1"). At least from a quick test, using tabindex=-1 seems to wfm. This doesn't seem like a regression or a very severe issue (you can after all filter the list and/or press [tab] multiple times), so marking as P3.
Priority: -- → P3
(In reply to :Gijs (he/him) from comment #1) > This doesn't seem like a regression It isn't. > or a very severe issue (you can after > all filter the list and/or press [tab] multiple times) For a screen reader user, it can be a pretty severe issue. While screen readers do report "context" (e.g. groupings), list items aren't considered as a candidate for context in most screen readers. So, when a user hits tab, they will only hear, for example, "combo box allow collapsed". Since there was no other indication of the item they were adjusting and there was a selectable list before it, the user will (intuitively) assume that they're adjusting for the selected item in the list.
Maybe Prathiksha has time to look into this. :)
(In reply to Johann Hofmann [:johannh] from comment #3) > Maybe Prathiksha has time to look into this. :) Yeah, based on comment #2 I think this is higher priority. Prathiksha, do you have time to look into this? If not, please pass me the needinfo back and I'll try to find someone else.
Flags: needinfo?(prathikshaprasadsuman)
(In reply to :Gijs (he/him) from comment #4) > Yeah, based on comment #2 I think this is higher priority. Prathiksha, do > you have time to look into this? If not, please pass me the needinfo back > and I'll try to find someone else. Yeah, I'll take a look at this.
Assignee: nobody → prathikshaprasadsuman
Status: NEW → ASSIGNED
Only selected items in the permission settings richlistbox should be tabable for accessibility reasons.
Flags: needinfo?(prathikshaprasadsuman)
Pushed by prathikshaprasadsuman@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3141b7b79153 Only selected items in the permission settings richlistbox should be tabable for accessibility reasons. r=johannh,Jamie
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df35c50cab3d Backed out changeset 3141b7b79153 for browser chrome failures on browser_permissions_dialog.
Pushed by prathikshaprasadsuman@gmail.com: https://hg.mozilla.org/integration/autoland/rev/654dc5ab446c Only selected items in the permission settings richlistbox should be tabable for accessibility reasons. r=johannh,Jamie
Flags: needinfo?(prathikshaprasadsuman)
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Flags: qe-verify+

I have managed to reproduce this issue using Firefox 65.0a1 (BuildId:20181024221315).

This issue is verified fixed using Firefox 65.0b12 (BuildId:20190117232427) on Windows 10 64bit and Ubuntu 16.04 64bit.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
See Also: → 1329643
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: