Closed Bug 2037008 Opened 4 months ago Closed 4 months ago

Focus lost when re-assigning a slot with shadow DOM slot mutation

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 148
defect

Tracking

()

RESOLVED DUPLICATE of bug 2037337

People

(Reporter: serguey.kulikov, Unassigned)

References

Details

Attachments

(1 file)

Steps to reproduce:

Reproduction: https://codepen.io/web-padawan/pen/OPbyLQM or see .html attached.

Problem: removing a <slot> element that a focused light-DOM child was previously assigned to (but is no longer, after changing the attribute to a different existing slot).

Actual results:

Focus silently moves to <body> without firing blur / focusout events.

Expected results:

Focus should remain on the element (it is still in the DOM and assigned to an existing slot). Removing an unrelated, no longer used slot should not affect focus.

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

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
See Also: → 2037337

Yeah effectively the same root cause (and fix if we take that) as bug 2037337.

Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Duplicate of bug: 2037337
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: