Closed Bug 2010581 Opened 10 months ago Closed 10 months ago

[wpt-sync] Sync PR 57183 - PointerEvent WPT: Assert .fromElement/.toElement attributes as optional

Categories

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

task

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Mustaq Ahmed <mustaq@google.com> wrote:

PointerEvent WPT: Assert .fromElement/.toElement attributes as optional

This CL removes the "non-standard" variants w/o losing coverage: the
.fromElement and toElement attributes are mentioned in the spec as
optional and therefore should be checked only when defined.

Change-Id: I00bb9a66802b94cd4bb05ee323ac6c983c0d9306
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7471786
Reviewed-by: Robert Flack \<flackr@chromium.org>
Auto-Submit: Mustaq Ahmed \<mustaq@chromium.org>
Commit-Queue: Mustaq Ahmed \<mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1569696}

Component: web-platform-tests → DOM: Events
Product: Testing → Core
Attached file Notable wpt changes —
# CI Results Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI Total 270 tests ## Status Summary ### Firefox `OK` : 157[GitHub] 251[Gecko-linux2404-64-debug, Gecko-windows11-64-24h2-debug] 252[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-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-opt] `PASS` : 579[GitHub] 2200[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] 2204[Gecko-linux2404-64-debug] 2205[Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] `FAIL` : 102[GitHub] 123[Gecko-windows11-64-24h2-debug] 124[Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-opt] 125[Gecko-linux2404-64-debug] 129[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] `PRECONDITION_FAILED`: 92 `TIMEOUT` : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 2[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-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 11[GitHub] `ERROR` : 9[GitHub] 10[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-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] `NOTRUN` : 10[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-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 14[GitHub] ### Chrome `OK` : 164 `PASS` : 989 `FAIL` : 51 `TIMEOUT` : 3 `ERROR` : 8 `NOTRUN` : 5 ### Safari `OK` : 149 `PASS` : 893 `FAIL` : 74 `TIMEOUT` : 13 `ERROR` : 15 `NOTRUN` : 24 ## Links [Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=598c3d5c20351085e3ce2495ff0e036ecde4c9ce) [GitHub PR Head](https://wpt.fyi/results/?sha=e315c378a62f28f9aed0d1933d3e04d52eea2569&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=e315c378a62f28f9aed0d1933d3e04d52eea2569&label=pr_base) ## Details ### Firefox-only Failures * [/pointerevents/pointerevent_touch-action-auto-css_touch.html](https://wpt.live/pointerevents/pointerevent_touch-action-auto-css_touch.html) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_touch-action-auto-css_touch.html)]: `SKIP` [`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-24h2-debug`, `Gecko-windows11-32-24h2-opt`, `Gecko-windows11-64-24h2-debug`, `Gecko-windows11-64-24h2-opt`], `TIMEOUT` [`GitHub`] linked bug:Bug 1655753 * [/pointerevents/capturing_boundary_event_handler_at_ua_shadowdom.html?pen](https://wpt.live/pointerevents/capturing_boundary_event_handler_at_ua_shadowdom.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/capturing_boundary_event_handler_at_ua_shadowdom.html?pen)] * Capturing boundary event handler at DIV: `FAIL` * Capturing boundary event handler at VIDEO: `FAIL` * Capturing boundary event handler at INPUT: `FAIL` * [/pointerevents/coalesced_events_attributes.https.html?pen](https://wpt.live/pointerevents/coalesced_events_attributes.https.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/coalesced_events_attributes.https.html?pen)] * Coalesced list in boundary events: `FAIL` * Coalesced list in pointer-capture events: `FAIL` * Coalesced list in pointerdown/move/up events: `FAIL` * [/pointerevents/coalesced_events_attributes_on_redispatch.https.html?pen](https://wpt.live/pointerevents/coalesced_events_attributes_on_redispatch.https.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/coalesced_events_attributes_on_redispatch.https.html?pen)] * Coalesced list in pointerdown/move/up events: `FAIL` * [/pointerevents/pointerevent_after_target_appended.html?pen](https://wpt.live/pointerevents/pointerevent_after_target_appended.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_after_target_appended.html?pen)] * mouse events from pen received before/after child attached at mousedown: `FAIL` * mouse events from pen received before/after child attached at mouseup: `FAIL` * mouse events from pen received before/after child moved at mousedown: `FAIL` * mouse events from pen received before/after child moved at mouseup: `FAIL` * [/pointerevents/pointerevent_after_target_removed.html?pen](https://wpt.live/pointerevents/pointerevent_after_target_removed.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_after_target_removed.html?pen)] * mouse events from pen received before/after child removal at mousedown: `FAIL` * mouse events from pen received before/after child removal at mouseup: `FAIL` * [/pointerevents/pointerevent_attributes.html?mouse-right](https://wpt.live/pointerevents/pointerevent_attributes.html?mouse-right) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_attributes.html?mouse-right)] * mouse pointerover.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerover.toElement value is null: `PRECONDITION_FAILED` * mouse pointerenter.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerenter.toElement value is null: `PRECONDITION_FAILED` * mouse pointermove.fromElement value is null: `PRECONDITION_FAILED` * mouse pointermove.toElement value is null: `PRECONDITION_FAILED` * mouse pointerdown.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerdown.toElement value is null: `PRECONDITION_FAILED` * mouse pointerup.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerup.toElement value is null: `PRECONDITION_FAILED` * mouse pointerout.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerout.toElement value is null: `PRECONDITION_FAILED` * mouse pointerleave.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerleave.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerover.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerover.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerenter.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerenter.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointermove.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointermove.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerdown.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerdown.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerup.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerup.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerout.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerout.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerleave.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerleave.toElement value is null: `PRECONDITION_FAILED` * [/pointerevents/pointerevent_attributes.html?pen-right](https://wpt.live/pointerevents/pointerevent_attributes.html?pen-right) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_attributes.html?pen-right)] * Test pointer events in the main document: `FAIL` * Test pointer events in an iframe: `FAIL` * [/pointerevents/pointerevent_attributes.html?pen](https://wpt.live/pointerevents/pointerevent_attributes.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_attributes.html?pen)] * Test pointer events in the main document: `FAIL` * Test pointer events in an iframe: `FAIL` * [/pointerevents/pointerevent_attributes.html?mouse](https://wpt.live/pointerevents/pointerevent_attributes.html?mouse) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_attributes.html?mouse)] * mouse pointerover.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerover.toElement value is null: `PRECONDITION_FAILED` * mouse pointerenter.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerenter.toElement value is null: `PRECONDITION_FAILED` * mouse pointermove.fromElement value is null: `PRECONDITION_FAILED` * mouse pointermove.toElement value is null: `PRECONDITION_FAILED` * mouse pointerdown.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerdown.toElement value is null: `PRECONDITION_FAILED` * mouse pointerup.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerup.toElement value is null: `PRECONDITION_FAILED` * mouse pointerout.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerout.toElement value is null: `PRECONDITION_FAILED` * mouse pointerleave.fromElement value is null: `PRECONDITION_FAILED` * mouse pointerleave.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerover.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerover.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerenter.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerenter.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointermove.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointermove.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerdown.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerdown.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerup.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerup.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerout.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerout.toElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerleave.fromElement value is null: `PRECONDITION_FAILED` * Inner Frame mouse pointerleave.toElement value is null: `PRECONDITION_FAILED` * [/pointerevents/pointerevent_boundary_events_in_capturing.html?pen](https://wpt.live/pointerevents/pointerevent_boundary_events_in_capturing.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_boundary_events_in_capturing.html?pen)] * Boundary events around pointer capture and release: `FAIL` * [/pointerevents/pointerevent_click_is_a_pointerevent.html?pen](https://wpt.live/pointerevents/pointerevent_click_is_a_pointerevent.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_click_is_a_pointerevent.html?pen)] * click using pen is a PointerEvent with correct properties: `FAIL` * click using pen is a PointerEvent with correct properties when no other PointerEvent listeners are present: `FAIL` * click using pen is a PointerEvent with correct properties in a subframe: `FAIL` * [/pointerevents/pointerevent_disabled_form_control.html?pen](https://wpt.live/pointerevents/pointerevent_disabled_form_control.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_disabled_form_control.html?pen)]: `ERROR` * pen pointerevent attributes: `NOTRUN` * [/pointerevents/pointerevent_element_haspointercapture.html?pen](https://wpt.live/pointerevents/pointerevent_element_haspointercapture.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_element_haspointercapture.html?pen)]: `ERROR` * hasPointerCapture: `NOTRUN` * [/pointerevents/pointerevent_element_haspointercapture_release_pending_capture.html?pen](https://wpt.live/pointerevents/pointerevent_element_haspointercapture_release_pending_capture.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_element_haspointercapture_release_pending_capture.html?pen)]: `ERROR` * hasPointerCapture test after the pending pointer capture element releases pointer capture: `NOTRUN` * [/pointerevents/pointerevent_movementxy.html?pen](https://wpt.live/pointerevents/pointerevent_movementxy.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_movementxy.html?pen)]: `ERROR` linked bug:Bug 1655753 * [/pointerevents/pointerevent_pointercapture_in_frame.html?pen](https://wpt.live/pointerevents/pointerevent_pointercapture_in_frame.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_pointercapture_in_frame.html?pen)] * Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.: `FAIL` * Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.: `FAIL` * Test penpointer capture in same-origin frame: Pointer down at outer frame body and set pointer capture in inner frame should not capture.: `FAIL` * Test penpointer capture in same-origin frame: Pointerdown with set capture at inner frame, then release on next pointermove.: `FAIL` * Test penpointer capture in same-origin frame: Pointerdown with set capture at outer frame, then release on next pointermove.: `FAIL` * [/pointerevents/pointerevent_pointerout_pen.html](https://wpt.live/pointerevents/pointerevent_pointerout_pen.html) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_pointerout_pen.html)]: `ERROR` linked bug:Bug 1655753 * [/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?pen](https://wpt.live/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?pen)]: `ERROR` * pen got/lost pointercapture: subsequent events to target: `NOTRUN` * [/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?mouse](https://wpt.live/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?mouse) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?mouse)] * mouse gotpointercapture.fromElement value is null: `PRECONDITION_FAILED` * mouse gotpointercapture.toElement value is null: `PRECONDITION_FAILED` * mouse lostpointercapture.fromElement value is null: `PRECONDITION_FAILED` * mouse lostpointercapture.toElement value is null: `PRECONDITION_FAILED` * [/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?touch](https://wpt.live/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?touch) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_releasepointercapture_events_to_original_target.html?touch)] * touch gotpointercapture.fromElement value is null: `PRECONDITION_FAILED` * touch gotpointercapture.toElement value is null: `PRECONDITION_FAILED` * touch lostpointercapture.fromElement value is null: `PRECONDITION_FAILED` * touch lostpointercapture.toElement value is null: `PRECONDITION_FAILED` * [/pointerevents/pointerevent_releasepointercapture_release_right_after_capture.html?pen](https://wpt.live/pointerevents/pointerevent_releasepointercapture_release_right_after_capture.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_releasepointercapture_release_right_after_capture.html?pen)]: `ERROR` * Release pointer capture right after setpointercapture: `NOTRUN` * [/pointerevents/pointerevent_sequence_at_implicit_release_on_click.html?pen](https://wpt.live/pointerevents/pointerevent_sequence_at_implicit_release_on_click.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_sequence_at_implicit_release_on_click.html?pen)]: `ERROR` * pen Boundary events are emitted after lostpointercapture: `NOTRUN` * No extra events are emitted: `NOTRUN` * [/pointerevents/pointerevent_setpointercapture_override_pending_capture_element.html?pen](https://wpt.live/pointerevents/pointerevent_setpointercapture_override_pending_capture_element.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_setpointercapture_override_pending_capture_element.html?pen)]: `ERROR` * setPointerCapture: override the pending pointer capture element: `NOTRUN` * [/pointerevents/pointerevent_setpointercapture_to_same_element_twice.html?pen](https://wpt.live/pointerevents/pointerevent_setpointercapture_to_same_element_twice.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_setpointercapture_to_same_element_twice.html?pen)] * A repeated setPointerCapture call does not redispatch capture events: `FAIL` * A failed setPointerCapture call does not affect existing capture: `FAIL` * [/pointerevents/pointerevent_to_slotted_target.html?pen](https://wpt.live/pointerevents/pointerevent_to_slotted_target.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerevent_to_slotted_target.html?pen)] * Pointer events from pen to slotted element and shadow-host: `FAIL` * [/pointerevents/pointerup_after_pointerdown_target_removed.html?pen](https://wpt.live/pointerevents/pointerup_after_pointerdown_target_removed.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/pointerup_after_pointerdown_target_removed.html?pen)] * pointerup event from pen fired after pointerdown target is removed: `FAIL` * [/pointerevents/predicted_events_attributes.html?pen](https://wpt.live/pointerevents/predicted_events_attributes.html?pen) [[wpt.fyi](https://wpt.fyi/results/pointerevents/predicted_events_attributes.html?pen)] * Predicted list in boundary events: `FAIL` * Predicted list in pointer-capture events: `FAIL` * Predicted list in pointerdown/move/up events: `FAIL` (See attachment for full changes)
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: