Closed Bug 1940866 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 50012 - Fix WPT introduced by https://crrev.com/c/5948203 and failing since the switch to headless_shell

Categories

(Core :: DOM: Selection, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Tanu Jain <tanujain@microsoft.com> wrote:

Fix WPT introduced by https://crrev.com/c/5948203 and failing since the switch to headless_shell

The test failed on headless_shell because, after creating the range
for selection, sending the key for backspace press was incorrectly
moving the selection. This resulted in the wrong character being
deleted and an additional selectionchange event. This CL resolves
the issue by placing the cursor at the correct position, deleting
the correct character/range, and ensuring the expected number of
selectionchange events.

Bug: 387842573
Change-Id: I39415f541ec5b3d9e2cc64a3b04267033449d786

Reviewed-on: https://chromium-review.googlesource.com/6110534
WPT-Export-Revision: c677d49deee0e7bedc9bb80a401869cff5c7bf77

Component: web-platform-tests → DOM: Selection
Product: Testing → Core

CI Results

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

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
PASS: 2

Safari

OK : 1
PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8c2d64d71870 [wpt PR 50012] - Fix WPT introduced by https://crrev.com/c/5948203 and failing since the switch to headless_shell, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.