Closed Bug 2041647 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60091 - Make Event::SetRelatedTargetIfExists more complete.

Categories

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

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

David Baron <dbaron@chromium.org> wrote:

Make Event::SetRelatedTargetIfExists more complete.

This fixes Event::SetRelatedTargetIfExists to be more complete and
removes an earlier workaround for its incompleteness.

This avoids shadow DOM element exposure in the dragenter event (see added
test).

I don't think it looks like we set relatedTarget for wheel events even though
wheel events are supposed to have relatedTarget set according to
https://w3c.github.io/pointerevents/#wheel, so this adds a (failing) test for
that case.

I'm also not sure whether the previous workaround behaved correctly for all
phases of event dispatch, though.

This change is behind the already-stable DontLeakShadowTreesInDragEvents
flag that also covered the previous workaround.

Fixed: 513796307
Bug: 328662546
Change-Id: I5401dedddf4525bd7794e6b77f8dd3d6d886bdaf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7856781
Commit-Queue: David Baron \<dbaron@chromium.org>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1634643}

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 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 321 tests

Status Summary

Firefox

OK : 2[GitHub] 271[Gecko-android-em-14-x86_64-debug-geckoview] 272[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 273[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 22[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 14831[Gecko-windows11-32-25h2-debug] 14845[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] 14856[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 2[GitHub] 159[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-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 1[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-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 2[Gecko-android-em-14-x86_64-debug-geckoview]
NOTRUN : 2

Chrome

OK : 2
FAIL : 2

Safari

OK : 2
FAIL : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

  • /shadow-dom/scroll-to-the-fragment-in-shadow-tree.html [wpt.fyi]: OK [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], 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]
  • /shadow-dom/nested-hover-pseudo-class-removal.html [wpt.fyi]: PASS [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], 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]
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.