Closed Bug 2022468 Opened 3 months ago Closed 2 months ago

Popover with overflow != hidden traps focus within the popover (Only Tab! Shift + Tab works)

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

Firefox 148
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr140 --- unaffected
firefox148 --- wontfix
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- fixed

People

(Reporter: fabio.gimmillaro, Assigned: ltenenbaum)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0

Steps to reproduce:

<button popovertarget="popover">
Hello
</button>
<!-- The popover must have an overflow != hidden and auto -->
<div popover="auto" style="overflow: visible;" id="popover">
<button>Focus me</button>
</div>

  • Click on button
  • Press "Tab" repeatedly
  • Focus always stays in popover

With Shift+Tab everything works as expected

Actual results:

Focus always stays in popover

Expected results:

The popover should behave like a popover with "overflow: hidden"

The bug is better visible when using multiple buttons within the popover:

<button popovertarget="popover1">
  Hello
</button>
<div popover="auto" style="overflow: visible;" id="popover1">
  <button>Focus me</button>
  <button>Focus me</button>
  <button>Focus me</button>
  <button>Focus me</button>
</div>

The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core

Emilo, looks like you maintain the popover focus management even though it's implemented by zsun, could you take a look?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(emilio)
Keywords: regression
Regressed by: 1972609
Depends on: 2022779

Set release status flags based on info from the regressing bug 1972609

:keithamus, since you are the author of the regressor, bug 1972609, could you take a look?

For more information, please visit BugBot documentation.

Assignee: nobody → ltenenbaum
Attachment #9558074 - Attachment description: WIP: Bug 2022468 - Don't traverse to ::backdrop frame placeholder. r=#layout-reviewers → Bug 2022468 - Better handling of focus navigation for popovers. r=#dom-core
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
See Also: → 1955857
Flags: needinfo?(mozilla)
Depends on: 1955857
See Also: 1955857

This has been fixed by the patch for bug 1955857.

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Attachment #9558074 - Attachment is obsolete: true
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: