When an open menulist in a popup panel has focus, pressing tab closes both menulist and panel
Categories
(Toolkit :: UI Widgets, defect, P3)
Tracking
()
People
(Reporter: Jamie, Unassigned)
References
Details
Spun off bug 1561517 comment 7.
STR:
- Open the Browser Toolbox.
- Run this code:
p = document.createXULElement("panel"); document.getElementById("nav-bar").append(p); ml = document.createXULElement("menulist"); p.append(ml); mp = document.createXULElement("menupopup"); ml.append(mp); mp.append(document.createXULElement("menuitem")); p.append(document.createXULElement("button")); setTimeout(() => p.openPopup(), 3000);
- Switch back to the main Firefox window within 3 seconds.
- Wait for the popup to open.
- Press tab to focus the menulist.
- Press alt+downArrow to expand it.
- Press tab.
- Expected: The menulist should be closed, but the panel (p) should remain open.
- Actual: Both the menulist and the panel are dismissed.
From bug 1561517 comment 9:
We should ideally be running the block at https://searchfox.org/mozilla-central/source/layout/xul/nsXULPopupManager.cpp#223 to limit closing to similar-type popups only, but the passed in aLastRolledUp argument is null. Likely, passing a dummy non-null pointer for the tab key (but not F10) at https://searchfox.org/mozilla-central/source/layout/xul/nsXULPopupManager.cpp#2199 would fix this.
Comment 1•5 years ago
|
||
The priority flag is not set for this bug.
:aswan, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•5 years ago
|
||
Neil, looks like this was spawned from a comment you made, can you prioritize this?
Updated•5 years ago
|
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Bug 1811487 fixes this (initially by accident, but now I see it I just kept that minor behavior change).
Description
•