[wpt-sync] Sync PR 62885 - [focus-without-user-activation] Test click-handler attribution
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox159 fixed)
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62885 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62885
Details from upstream follow.
Fernando Fiori <ffiori@microsoft.com> wrote:
[focus-without-user-activation] Test click-handler attribution
Add tentative WPT coverage for a denied same-origin window invoking
click() on a button in an allowed window. A handler defined in the
allowed window can focus its own control, whereas a handler defined in
the denied window cannot borrow the button owner's focus permission.Check that the denied window's direct focus call is blocked, neither
tested window has focus or transient activation, and the synthetic click
does not grant activation. Use a third auxiliary window to park focus.The test is tentative while initiator attribution is being specified:
https://github.com/whatwg/html/issues/12032Bug: 40095111
Change-Id: I9180d6a51da5a0630db9d971d9cde98ba78e9492
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8428383
Reviewed-by: Dan Clark \<daniec@microsoft.com>
Reviewed-by: Fernando Fiori \<ffiori@microsoft.com>
Auto-Submit: Fernando Fiori \<ffiori@microsoft.com>
Commit-Queue: Fernando Fiori \<ffiori@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1703044}
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=96114
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 35 tests and 2 subtests
Status Summary
Firefox
OK : 1[GitHub] 32[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]
PASS : 11
FAIL : 2[GitHub] 36[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 37[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS : 2
Safari
TIMEOUT: 2
NOTRUN : 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /permissions-policy/experimental-features/vertical-scroll-disabled-scrollbar-tentative.html [wpt.fyi]:
FAIL - /permissions-policy/experimental-features/unload-disallowed-embed.tentative.window.html [wpt.fyi]:
SKIP - /permissions-policy/experimental-features/unload-disallowed-object.tentative.window.html [wpt.fyi]:
SKIP - /permissions-policy/experimental-features/focus-without-user-activation-click-handler.tentative.html [wpt.fyi]
- A denied window can trigger focus through an allowed window's own click handler:
FAIL(Chrome:PASS, Safari:TIMEOUT) - A click handler defined in a denied window cannot borrow the button owner's focus permission:
FAIL(Chrome:PASS, Safari:NOTRUN)
- A denied window can trigger focus through an allowed window's own click handler:
- /permissions-policy/experimental-features/focus-without-user-activation-default-permissions-policy.https.sub.html [wpt.fyi]
- Default "focus-without-user-activation" permissions policy [*] allows same-origin iframes.:
FAIL - Default "focus-without-user-activation" permissions policy [*] allows cross-origin iframes.:
FAIL
- Default "focus-without-user-activation" permissions policy [*] allows same-origin iframes.:
- /permissions-policy/experimental-features/focus-without-user-activation-disabled.html [wpt.fyi]
- When the policy is disabled, 'autofocus' and scripted focus do not focus the document.:
FAIL
- When the policy is disabled, 'autofocus' and scripted focus do not focus the document.:
- /permissions-policy/experimental-features/focus-without-user-activation-enabled.sub.html [wpt.fyi]
- When the policy is enabled, 'autofocus' and scripted focus do focus the document.:
FAIL
- When the policy is enabled, 'autofocus' and scripted focus do focus the document.:
- /permissions-policy/experimental-features/focus-without-user-activation-focused-frame-descendant-cross-origin.https.sub.html [wpt.fyi]
- Cross-origin iframe with policy denied cannot steal focus from parent or sibling:
FAIL
- Cross-origin iframe with policy denied cannot steal focus from parent or sibling:
- /permissions-policy/experimental-features/focus-without-user-activation-focused-frame-descendant.html [wpt.fyi]
- Iframe with policy denied and without focus cannot steal focus from parent frame:
FAIL - Sibling iframe with policy denied cannot steal focus from focused sibling:
FAIL - Nested child iframe with policy denied cannot steal focus from parent iframe that has focus:
FAIL
- Iframe with policy denied and without focus cannot steal focus from parent frame:
- /permissions-policy/experimental-features/focus-without-user-activation-setter-policy.html [wpt.fyi]
- Setter with policy denied cannot focus element in parent with policy allowed:
FAIL
- Setter with policy denied cannot focus element in parent with policy allowed:
- /permissions-policy/experimental-features/focus-without-user-activation-target-frame-state-ignored.html [wpt.fyi]
- Target iframe activation does not authorize a focus call from a restricted initiator:
FAIL
- Target iframe activation does not authorize a focus call from a restricted initiator:
- /permissions-policy/experimental-features/permissions-policy-header-host-wildcard.https.sub.html [wpt.fyi]
- Test wildcard host policy works as expected:
FAIL
- Test wildcard host policy works as expected:
- /permissions-policy/experimental-features/permissions-policy-header-port-wildcard.https.sub.html [wpt.fyi]
- Test wildcard port policy works as expected:
FAIL
- Test wildcard port policy works as expected:
- /permissions-policy/experimental-features/permissions-policy-header-scheme-only.https.sub.html [wpt.fyi]
- Test scheme only policy works as expected:
FAIL
- Test scheme only policy works as expected:
- /permissions-policy/experimental-features/private-state-token-redemption-default-permissions-policy.tentative.https.sub.html [wpt.fyi]
- Default "private-state-token-redemption" permissions policy ["self"] allows the top-level document.:
FAIL - Default "private-state-token-redemption" permissions policy ["self"] allows same-origin iframes.:
FAIL - Default "private-state-token-redemption" permissions policy ["self"] allows cross-origin iframes.:
FAIL - Default "private-state-token-redemption" permissions policy ["self"] and allow="private-state-token-redemption 'none'" disallows cross-origin iframes.:
FAIL
- Default "private-state-token-redemption" permissions policy ["self"] allows the top-level document.:
- /permissions-policy/experimental-features/private-state-token-redemption-supported-by-permissions-policy.tentative.html [wpt.fyi]
- document.permissionsPolicy.features should advertise private-state-token-redemption.:
FAIL
- document.permissionsPolicy.features should advertise private-state-token-redemption.:
- /permissions-policy/experimental-features/unload-allowed-by-default.tentative.window.html [wpt.fyi]
- 'unload' Policy : allowed by default:
FAIL
- 'unload' Policy : allowed by default:
- /permissions-policy/experimental-features/unload-allowed-embed.tentative.window.html [wpt.fyi]
- 'unload' Policy : allowed in frames when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in frames when allowed in main frame.:
- /permissions-policy/experimental-features/unload-allowed-frameset.tentative.window.html [wpt.fyi]
- 'unload' Policy : allowed in frames when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in frames when allowed in main frame.:
- /permissions-policy/experimental-features/unload-allowed-headerless.tentative.window.html?urlType=srcdoc [wpt.fyi]
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
- /permissions-policy/experimental-features/unload-allowed-headerless.tentative.window.html?urlType=data [wpt.fyi]
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
- /permissions-policy/experimental-features/unload-allowed-headerless.tentative.window.html?urlType=blank [wpt.fyi]
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
- /permissions-policy/experimental-features/unload-allowed-headerless.tentative.window.html?urlType=blob [wpt.fyi]
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in headerless doc when allowed in main frame.:
- /permissions-policy/experimental-features/unload-allowed-object.tentative.window.html [wpt.fyi]
- 'unload' Policy : allowed in frames when allowed in main frame.:
FAIL
- 'unload' Policy : allowed in frames when allowed in main frame.:
- /permissions-policy/experimental-features/unload-disallowed-frameset.tentative.window.html [wpt.fyi]
- 'unload' Policy : disallowed in frames when disallowed in main frame.:
FAIL
- 'unload' Policy : disallowed in frames when disallowed in main frame.:
- /permissions-policy/experimental-features/unload-disallowed-headerless.tentative.window.html?urlType=blank [wpt.fyi]
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
FAIL
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
- /permissions-policy/experimental-features/unload-disallowed-headerless.tentative.window.html?urlType=data [wpt.fyi]
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
FAIL
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
- /permissions-policy/experimental-features/unload-disallowed-headerless.tentative.window.html?urlType=blob [wpt.fyi]
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
FAIL
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
- /permissions-policy/experimental-features/unload-disallowed-headerless.tentative.window.html?urlType=srcdoc [wpt.fyi]
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
FAIL
- 'unload' Policy : disallowed in headerless doc when disallowed in main frame.:
- /permissions-policy/experimental-features/unload-disallowed-subframe.tentative.window.html [wpt.fyi]
- 'unload' Policy : allowed in main frame but disallowed in subframe:
FAIL
- 'unload' Policy : allowed in main frame but disallowed in subframe:
- /permissions-policy/experimental-features/unload-disallowed.tentative.window.html [wpt.fyi]
- 'unload' Policy : disallowed when header is ():
FAIL
- 'unload' Policy : disallowed when header is ():
- /permissions-policy/experimental-features/vertical-scroll-scrollintoview.tentative.html [wpt.fyi]
- Calling 'scrollIntoView()' inside a <iframe> with 'vertical-scroll none;'will not propagate upwards.:
FAIL
- Calling 'scrollIntoView()' inside a <iframe> with 'vertical-scroll none;'will not propagate upwards.:
Tests Disabled in Gecko Infrastructure
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/13e8d0a68e1f
https://hg.mozilla.org/mozilla-central/rev/e6629ff0d111
Comment 5•1 month ago
|
||
| bugherder | ||
Description
•