Closed Bug 2019040 Opened 9 months ago Closed 9 months ago

[wpt-sync] Sync PR 58016 - [focusgroup] Fix focus-navigation flakes

Categories

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

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jacques Newman <janewman@microsoft.com> wrote:

[focusgroup] Fix focus-navigation flakes

The consolidation CL (crrev.com/c/7545185) switched
navigateFocusForward() from test_driver.send_keys() to the Actions API.
The Actions API dispatches raw OS-level key events without element
targeting, which seems to drop events on some platforms, causing flaky
timeouts in focus-navigation-slot-fallback.html and
delegatesFocus-highlight-sibling.html.

Restore test_driver.send_keys(document.body, kTab) for
navigateFocusForward. body.focus() is a no-op so this preserves focus
state. Add a separate sendTabForward() helper using the Actions API for
focusgroup tests, which need to avoid the body.focus() call that
send_keys performs (it would blur the active element and break exit
behavior on key-conflict elements).

Update all focusgroup sequential-navigation tests to use
sendTabForward() and navigateFocusBackward() directly.

Fixed: 483962364, 483892110
Change-Id: I825b53bfc440402851dbfcc677e98fc00a4493a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7585834
Commit-Queue: Jacques Newman \<janewman@microsoft.com>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1589469}

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

CI Results

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

Total 140 tests and 1 subtests

Status Summary

Firefox

OK : 140
PASS: 110
FAIL: 195

Chrome

OK : 140
PASS: 304
FAIL: 1

Safari

OK : 140
PASS: 99
FAIL: 206

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

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