Closed Bug 2079102 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63331 - Make html/user-activation/propagation-crossorigin.sub.html robust to touch input

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ryosuke Niwa <rniwa@webkit.org> wrote:

Make html/user-activation/propagation-crossorigin.sub.html robust to touch input

The test clicks the midpoint of the cross-origin child frame, which lands in a plain <div> just above the grandchild frame. The child frame listens for clicks on its window, so nothing at the tapped point is itself clickable.

On touch devices, a browser may only send a click for a tap that hits an element that responds to clicks, adjusting the tap toward a nearby clickable element otherwise. Here, the tap gets adjusted onto the grandchild <iframe>, and the test currently passes only because the adjusted point lands right on the <iframe>'s 2px border, within a fraction of a pixel of its edge. The border belongs to the <iframe> element in the child frame, so the click bubbles to the child frame's window. A sub-pixel difference in layout or in how the tap is adjusted instead moves the point above the border, where the click is dropped, or into the grandchild frame's content, where the grandchild frame receives it.

Shorten the <div> in the child frame and give the grandchild <iframe> a top padding, so that the child frame's midpoint falls in the middle of that padding. Like the border, the padding belongs to the <iframe> element in the child frame's document, not to the grandchild frame's content. A tap there hits the <iframe> element directly, with 15px of margin on either side, and the click bubbles to the child frame's window as the test expects. The grandchild frame still does not receive it.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 21 tests

Status Summary

Firefox

PASS : 4
TIMEOUT: 1
NOTRUN : 1

Chrome

OK : 1
PASS : 9

Safari

OK : 1
PASS : 9

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /html/user-activation/propagation-crossorigin.sub.html [wpt.fyi]: 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-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], TIMEOUT [GitHub]
    • Propagation test: NOTRUN

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/136a10e015c2 https://hg.mozilla.org/integration/autoland/rev/c589d1711ebe [wpt PR 63331] - Make html/user-activation/propagation-crossorigin.sub.html robust to touch input, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.