Closed Bug 2092570 Opened 17 days ago Closed 9 days ago

panel-list drops a letter typed right after hovering a submenu item

Categories

(Toolkit :: UI Widgets, defect, P3)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian, NeedInfo)

References

Details

Attachments

(1 external file)

With focus outside a panel-list, hovering a submenu item and typing a letter right away selects nothing.

PanelList#selectByKey makes the outer list stand aside as soon as the submenu's open is set. The submenu only starts listening for keys in addHideListeners(), after its asynchronous alignment (a requestAnimationFrame and a setTimeout), so neither list handles a key typed in between.

The fix makes the outer list stand aside only for a submenu that is already listening, and adds a test to test_panel_item_first_letter.html.

Blocks: 2092575

The outer list stood aside as soon as the submenu was open, but the submenu only listens for keys once its asynchronous alignment is done, so a letter typed right after hovering a submenu host was dropped by both lists.

Severity: -- → S3
Priority: -- → P3
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f354bb24ffdc https://hg.mozilla.org/integration/autoland/rev/ba59454d29c4 Let a panel-list keep the letters typed while its submenu is still aligning before it shows, r=reusable-components-reviewers,hjones.
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c016ba453fa0 https://hg.mozilla.org/integration/autoland/rev/6db1499f12ee Revert "Bug 2092570 - Let a panel-list keep the letters typed while its submenu is still aligning before it shows, r=reusable-components-reviewers,hjones." for causing lint failures
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5574bd59e2e4 https://hg.mozilla.org/integration/autoland/rev/635743695fa5 Let a panel-list keep the letters typed while its submenu is still aligning before it shows, r=reusable-components-reviewers,hjones.
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: