Closed Bug 2074833 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 62885 - [focus-without-user-activation] Test click-handler attribution

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox159 fixed)

RESOLVED FIXED
159 Branch
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/12032

Bug: 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}

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

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.