[wpt-sync] Sync PR 63331 - Make html/user-activation/propagation-crossorigin.sub.html robust to touch input
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| 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.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=101280
| Assignee | ||
Comment 2•1 month ago
|
||
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
- Propagation test:
New Tests That Don't Pass
- /html/user-activation/activation-trigger-keyboard-enter.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-keyboard-escape.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-mouse-left.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-mouse-right.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-pointerevent.html?pen [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-pointerevent.html?mouse [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-pointerevent.html?touch [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-touch.tentative.html [wpt.fyi]:
SKIP - /html/user-activation/chained-setTimeout.html [wpt.fyi]:
SKIP - /html/user-activation/detached-iframe.html [wpt.fyi]:
SKIP - /html/user-activation/message-event-activation-api-iframe-cross-origin.sub.tentative.html [wpt.fyi]:
SKIP - /html/user-activation/message-event-init.tentative.html [wpt.fyi]:
SKIP - /html/user-activation/navigate-to-crossorigin-redirect.html [wpt.fyi]:
SKIP - /html/user-activation/navigate-to-sameorigin.html [wpt.fyi]:
SKIP - /html/user-activation/navigation-state-reset-crossorigin.sub.html [wpt.fyi]:
SKIP - /html/user-activation/navigation-state-reset-sameorigin.html [wpt.fyi]:
SKIP - /html/user-activation/no-activation-thru-escape-key.html [wpt.fyi]:
SKIP - /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] (Chrome:OK, Safari:OK)- Propagation test:
NOTRUN(Chrome:PASS, Safari:PASS)
- Propagation test:
- /html/user-activation/propagation-same-and-cross-origin.sub.html [wpt.fyi]:
SKIP - /html/user-activation/propagation-sameorigin.html [wpt.fyi]:
SKIP - /html/user-activation/user-activation-interface.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
- /html/user-activation/activation-trigger-keyboard-enter.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-keyboard-escape.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-mouse-left.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-mouse-right.html [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-pointerevent.html?pen [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-pointerevent.html?mouse [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-pointerevent.html?touch [wpt.fyi]:
SKIP - /html/user-activation/activation-trigger-touch.tentative.html [wpt.fyi]:
SKIP - /html/user-activation/chained-setTimeout.html [wpt.fyi]:
SKIP - /html/user-activation/detached-iframe.html [wpt.fyi]:
SKIP - /html/user-activation/message-event-activation-api-iframe-cross-origin.sub.tentative.html [wpt.fyi]:
SKIP - /html/user-activation/message-event-init.tentative.html [wpt.fyi]:
SKIP - /html/user-activation/navigate-to-crossorigin-redirect.html [wpt.fyi]:
SKIP - /html/user-activation/navigate-to-sameorigin.html [wpt.fyi]:
SKIP - /html/user-activation/navigation-state-reset-crossorigin.sub.html [wpt.fyi]:
SKIP - /html/user-activation/navigation-state-reset-sameorigin.html [wpt.fyi]:
SKIP - /html/user-activation/no-activation-thru-escape-key.html [wpt.fyi]:
SKIP - /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] (Chrome:OK, Safari:OK) - /html/user-activation/propagation-same-and-cross-origin.sub.html [wpt.fyi]:
SKIP - /html/user-activation/propagation-sameorigin.html [wpt.fyi]:
SKIP - /html/user-activation/user-activation-interface.html [wpt.fyi]:
SKIP
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•