Closed Bug 1641067 Opened 6 years ago Closed 5 years ago

[wpt-sync] Sync PR 23781 - Add tests for proxying modifier clicks on label to labeled elements

Categories

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

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mu-An Chiou <me@muanchiou.com> wrote:

Add tests for proxying modifier clicks on label to labeled elements

On platforms where clicking a label activates the form control, clicking the label in the following snippet could trigger the user agent to fire a click event at the input element, as if the element itself had been triggered by the user (Spec)

These tests are for a behavior reported in https://bugzilla.mozilla.org/show_bug.cgi?id=559506.

I ran them locally on Safari, Chrome, and Firefox on macOS. They pass in Chrome and Safari, but fail in Firefox.

I've also manually tested this using browserstack on Windows in Chrome, Edge 18/81, Firefox, and Firefox's behavior is slightly different where alt+click will trigger click, but still not the others.

On macOS ctrl clicks are right clicks and trigger context menus, so I just didn't include them.


This test file is based on html/semantics/forms/the-label-element/proxy-click-to-associated-element.html. Currently these fail on Firefox as timeouts as the click listeners were never reached. I'd love suggestions on how to make them fail more explicitly.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a2fb56c926a [wpt PR 23781] - Add tests for proxying modifier clicks on label to labeled elements, a=testonly https://hg.mozilla.org/integration/autoland/rev/793e8842ebdf [wpt PR 23781] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.