Make the scope concept for sequential focus handling also take popovers into account
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: edgar, Unassigned)
References
(Blocks 1 open bug)
Details
There is a focus navigation scope owner concept in the spec, https://html.spec.whatwg.org/#focus-navigation-scope-owner.
Our nsFocusManager
also has the similar concept, but it only handle the shadow DOM. The popover is handled separately. I think it makes sense to make our scope concept in nsFocusManager
also take popover into account, so that we don't need to handle them separately, and also make our code more align with the spec.
Reporter | ||
Comment 1•1 month ago
|
||
Hmm, besides bug 1949678, I think we generally don't handle tabindex
correctly for popover. For example, https://codepen.io/edgarchen-the-decoder/pen/zxYaEZJ, when focus move out of popover, we should use the tabindex of scope owner (popover invoker) and check the ancestor scope to find the next focusable element.
Description
•