Closed Bug 2042608 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60184 - Consume user activation in input.click() to show picker

Categories

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

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Joey Arhar <jarhar@chromium.org> wrote:

Consume user activation in input.click() to show picker

Certain input types, like \<input type=color> and \<input type=file>, can
show their picker when calling input.click(). This already checks for
user activation, but does not actually consume it. input.showPicker(),
on the other hand, checks for and consumes user activation.

Not consuming user activation can lead to issues where multiple pickers
can be opened at the same time, which leads to issues since there is
code which assumes that only one can be open at a time.

This patch also upgrades a DCHECK for only one picker being open at a
time to a CHECK.

Fixed: 502109002
Change-Id: I9842095f417cb470412bbbe5a7241600ce45e5eb

Reviewed-on: https://chromium-review.googlesource.com/7852999
WPT-Export-Revision: 20d80ca95bea49624aa2d6cbeff1f2bb7a3dca6e

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 212 tests and 2 subtests

Status Summary

Firefox

OK : 109
PASS : 1[GitHub] 13[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 170[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 179[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] 192[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 193[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 163[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 193[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] 227[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 228[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
ERROR: 1

Chrome

PASS : 1

Safari

PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/afc551659091 https://hg.mozilla.org/integration/autoland/rev/0b0ae0075cf2 [wpt PR 60184] - Consume user activation in input.click() to show picker, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: