Closed Bug 1581578 Opened 5 years ago Closed 4 years ago

Focus styling isn't visible on trees in some scenarios (tabbing to the tree doesn't highlight the first item, navigating items with Ctrl+Up/Down)

Categories

(Toolkit :: UI Widgets, defect, P3)

68 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox-esr60 --- wontfix
firefox-esr68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- wontfix
firefox73 --- wontfix
firefox74 --- wontfix
firefox75 --- fixed

People

(Reporter: u601362, Assigned: john)

References

(Regression)

Details

(Keywords: access, regression)

Attachments

(1 file, 2 obsolete files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Open Firefox, browse to any page.
Press Ctrl+H (opens history), place cursor into the history search field, press tab key on keyboard two times.

Actual results:

Selected item is "today". But UI does not highlight this item

Expected results:

Either a dotted line or colorized background should indicate which is the focused item.

Summary: Minor UI improvement: highlight selected history groudn → Minor UI improvement: highlight selected history group item
Component: Untriaged → Bookmarks & History

It looks like the focus isn't set up correctly somehow. Opening the sidebar and tabbing to the tree seems to give focus to the entire tree, but the first item is not selected.

You can press left or right-arrow to expand it. Pressing up or down arrows gives the expected highlight.

This also affects the bookmarks sidebar as well as the history one.

Severity: normal → minor
Status: UNCONFIRMED → NEW
Type: enhancement → defect
Ever confirmed: true
Priority: -- → P3
Summary: Minor UI improvement: highlight selected history group item → Bookmarks/History sidebars - tabbing to the tree doesn't highlight the first item

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=98d17facfe0093c4120cedd656d82b46822c1964&tochange=c8c488989a62c9ad8805569062c89ff74e641418

Regressed by: c8c488989a62c9ad8805569062c89ff74e641418 Tim Nguyen — Bug 1469287 - Implement new shared tree styling. r=dao

Before landing Bug 1469287, at least focus outline is indicated for the first treechildren.

Has Regression Range: --- → yes
Has STR: --- → yes
Keywords: regression

Too late for 70 but we could still take a patch in 71.

It seems like this is a general problem with trees based on Bug 1616843. Another STR from https://bugzilla.mozilla.org/show_bug.cgi?id=1616843#c0:

Steps to reproduce:

Trying to navigate in a tree (like bookmarks view) with keyboard, and moving around without selection (ie. with <ctrl>up/down).

Actual results:

No visual feedback except that the scroll area may move if we go far enough or if we open a sub-tree.

Expected results:

We should see something like the usual dotted-line outline.

Component: Bookmarks & History → XUL Widgets
Keywords: access
Product: Firefox → Toolkit
Summary: Bookmarks/History sidebars - tabbing to the tree doesn't highlight the first item → Focus ring isn't visible on trees in some scenarios (tabbing to the tree doesn't highlight the first item, navigating items with Ctrl+Up/Down)

Tim, do you have any idea which rule removed in https://hg.mozilla.org/mozilla-central/rev/c8c488989a62 might have caused this? Alternatively, I'm wondering if you found some workflow to test this in bug 1469287 - there's no indication of the focused item in the DOM/devtools even when it's working properly so it makes it hard to debug.

Flags: needinfo?(ntim.bugs)
Summary: Focus ring isn't visible on trees in some scenarios (tabbing to the tree doesn't highlight the first item, navigating items with Ctrl+Up/Down) → Focus styling isn't visible on trees in some scenarios (tabbing to the tree doesn't highlight the first item, navigating items with Ctrl+Up/Down)

(In reply to Brian Grinstead [:bgrins] from comment #6)

Tim, do you have any idea which rule removed in https://hg.mozilla.org/mozilla-central/rev/c8c488989a62 might have caused this?

Very likely: https://hg.mozilla.org/mozilla-central/rev/c8c488989a62#l26.47

Alternatively, I'm wondering if you found some workflow to test this in bug 1469287 - there's no indication of the focused item in the DOM/devtools even when it's working properly so it makes it hard to debug.

I can't remember on top of my head, but I recall this was more easily reproducible on Linux.

Flags: needinfo?(ntim.bugs)

(In reply to Tim Nguyen :ntim from comment #7)

(In reply to Brian Grinstead [:bgrins] from comment #6)

Tim, do you have any idea which rule removed in https://hg.mozilla.org/mozilla-central/rev/c8c488989a62 might have caused this?

Very likely: https://hg.mozilla.org/mozilla-central/rev/c8c488989a62#l26.47

Alternatively, I'm wondering if you found some workflow to test this in bug 1469287 - there's no indication of the focused item in the DOM/devtools even when it's working properly so it makes it hard to debug.

I can't remember on top of my head, but I recall this was more easily reproducible on Linux.

Do you want a patch from us for that? We already have a patch for it that works. It's just getting the same patch as before.

Flags: needinfo?(ntim.bugs)

(In reply to Alex ARNAUD from comment #8)

(In reply to Tim Nguyen :ntim from comment #7)

(In reply to Brian Grinstead [:bgrins] from comment #6)

Tim, do you have any idea which rule removed in https://hg.mozilla.org/mozilla-central/rev/c8c488989a62 might have caused this?

Very likely: https://hg.mozilla.org/mozilla-central/rev/c8c488989a62#l26.47

Alternatively, I'm wondering if you found some workflow to test this in bug 1469287 - there's no indication of the focused item in the DOM/devtools even when it's working properly so it makes it hard to debug.

I can't remember on top of my head, but I recall this was more easily reproducible on Linux.

Do you want a patch from us for that? We already have a patch for it that works. It's just getting the same patch as before.

Feel free to submit one and request review from me or dao.

Flags: needinfo?(ntim.bugs)
Assignee: nobody → john
Status: NEW → ASSIGNED
Attachment #9129141 - Attachment is obsolete: true
Attachment #9129140 - Attachment is obsolete: true
Pushed by ntim.bugs@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b0148a0391d8
Re-introduce focus styling on trees r=ntim
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: