Closed Bug 1566673 Opened 5 years ago Closed 2 years ago

When an open menulist in a popup panel has focus, pressing tab closes both menulist and panel

Categories

(Toolkit :: UI Widgets, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1811487

People

(Reporter: Jamie, Unassigned)

References

Details

Spun off bug 1561517 comment 7.

STR:

  1. Open the Browser Toolbox.
  2. 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);
    
  3. Switch back to the main Firefox window within 3 seconds.
  4. Wait for the popup to open.
  5. Press tab to focus the menulist.
  6. Press alt+downArrow to expand it.
  7. 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.

The priority flag is not set for this bug.
:aswan, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(aswan)

Neil, looks like this was spawned from a comment you made, can you prioritize this?

Flags: needinfo?(aswan) → needinfo?(enndeakin)
Flags: needinfo?(enndeakin)
Priority: -- → P3
See Also: → 1572035
Severity: normal → S3

Bug 1811487 fixes this (initially by accident, but now I see it I just kept that minor behavior change).

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1811487
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.