Closed Bug 2041646 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60092 - [focusgroup] Fix Tab for focusgroupstart in shadow DOM

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 60092 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/60092
Details from upstream follow.

Jacques Newman <janewman@microsoft.com> wrote:

[focusgroup] Fix Tab for focusgroupstart in shadow DOM

When focusgroupstart is on an element slotted into a shadow root,
Tab/Shift+Tab cannot reach it. The focusgroup entry element is
determined via flat tree traversal, but sequential focus navigation uses
scope-based traversal where slotted elements live in the slot's focus
scope. When the entry is inside a shadow host's scope and the host is a
non-entry focusgroup item, the host is skipped by
IsNonEntryFocusgroupItem, which also skips the inner scope, making the
entry unreachable.

The fix treats nested scope owners containing the segment entry as scope
gateways: IsNonEntryFocusgroupItem allows them through, and the
forward/backward traversal enters their scope directly without focusing
the host.

Bug: 40210717
Change-Id: I3e5b1c1717afff49a341ea98ed823705e29352e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7848252
Commit-Queue: Jacques Newman \<janewman@microsoft.com>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1634631}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 8 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 126 tests and 3 subtests

Status Summary

Firefox

OK : 2[GitHub] 126[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 146[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 6[GitHub] 293[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS: 5
FAIL: 2

Safari

OK : 2
FAIL: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.