Closed Bug 1892452 Opened 6 months ago Closed 5 months ago

[wpt-sync] Sync PR 45803 - Atomic move: preserve focus

Categories

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

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Noam Rosenthal <nrosenthal@chromium.org> wrote:

Atomic move: preserve focus

We simply don't blur the element when moved.
If it moves into an inert/hidden subtree, it will be blurred
asynchronously in the next focus fixup.

Bug: 40150299
Change-Id: I7966e7b1690dd4d654630daafa4d8ef646022a24
Reviewed-on: https://chromium-review.googlesource.com/5465724
WPT-Export-Revision: 0b3b6ba2ee601d6c6da98d0c4db9ad185695ce1a

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests and 4 subtests

Status Summary

Firefox

OK : 1
FAIL: 4

Chrome

OK : 1
FAIL: 4

Safari

OK : 1
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/nodes/moveBefore/tentative/focus-preserve.html [wpt.fyi]
    • when reparenting an element, don't automatically reset the document focus: FAIL (Chrome: FAIL, Safari: FAIL)
    • when reparenting a focused element into an inert parent, reset the document focus: FAIL (Chrome: FAIL, Safari: FAIL)
    • when reparenting a focused element into a hidden parent, reset the document focus: FAIL (Chrome: FAIL, Safari: FAIL)
    • when reparenting an ancestor of an focused element into a hidden parent, reset the document focus: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1218b6250e22 [wpt PR 45803] - Atomic move: preserve focus, a=testonly https://hg.mozilla.org/integration/autoland/rev/60796215f918 [wpt PR 45803] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.