Closed Bug 1903884 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 46848 - Correct expectations for pointerevents after slot changes.

Categories

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

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mustaq Ahmed <mustaq@google.com> wrote:

Correct expectations for pointerevents after slot changes.

These 3 points were missed previously:

  • The mouse pointer moves off from the shadow_host to click done.
  • After slot removal, the slotted_child remains un-rendered and
    also doesn't appear in the parent.children list. So the
    slotted_child is effectively disconnected therefore not expected
    to receive any following event. Firefox behaves this way too.
  • The down/up events at parent are also dispatched to shadow_root.
    Both Chrome and Firefox behaves this way.

Manual test link: https://codepen.io/mustaqahmed/full/BaeRvdZ
Existing WPT outcome: https://wpt.fyi/results/pointerevents/pointerevent_after_target_removed_from_slot.html%3Fmouse?label=experimental&label=master&aligned

Bug: 40156858
Change-Id: I7d9f50c7732b0dc81887dce86a323685b46fab17

Reviewed-on: https://chromium-review.googlesource.com/5640796
WPT-Export-Revision: 3ac53e58fa7d0247ceb825de2f5b7c6cc8089c7d

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

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

  • /pointerevents/pointerevent_after_target_removed_from_slot.html?mouse [wpt.fyi]
    • Pointer events from mouse received before/after slot removal at pointerdown: FAIL (Chrome: FAIL, Safari: FAIL)
    • Pointer events from mouse received before/after slotted-child removal at pointerdown: FAIL (Chrome: FAIL, Safari: FAIL)
    • Pointer events from mouse received before/after slot removal at pointerup: FAIL (Chrome: FAIL, Safari: FAIL)
    • Pointer events from mouse received before/after slotted-child removal at pointerup: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b907543d680f [wpt PR 46848] - Correct expectations for pointerevents after slot changes., a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.