Bug 1856097 [wpt PR 42091] - Add showPicker() method to HTMLSelectElement interface...
commit900953353cdc57ff0253cbc3ad4d1ba0a9da9571
authorLuke Warlow <luke@warlow.dev>
Tue, 3 Oct 2023 11:12:49 +0000 (3 11:12 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 4 Oct 2023 11:41:36 +0000 (4 11:41 +0000)
tree4deca90cf617cbfcedfdfc2bf7a55b144d5486b8
parent3574e2da05525609eb2af6e5ec7f7a63db6d81d8
Bug 1856097 [wpt PR 42091] - Add showPicker() method to HTMLSelectElement interface, a=testonly

Automatic update from web-platform-tests
Add showPicker() method to HTMLSelectElement interface

This CL adds an experimental method to the HTMLSelectElement interface
to allow web developers to show the browser picker for select elements.
It requires a user gesture and is disallowed for cross-origin iframes.

Intent to prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/6MUAqY2r3Hg

Demo: https://select-show-picker.glitch.me/
Spec: https://github.com/whatwg/html/pull/9754
Bug: 1485010
Change-Id: I822bff7b313dfa840b2a72edb66fcb4a2c7cb58d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4875550
Commit-Queue: Luke <lukewarlow156@gmail.com>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1203564}

--

wpt-commits: 072786d5a0e8f98c1253de24c88275d2d19b5826
wpt-pr: 42091
testing/web-platform/tests/html/semantics/forms/the-select-element/resources/show-picker-child-iframe.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/forms/the-select-element/show-picker-cross-origin-iframe.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/forms/the-select-element/show-picker-disabled.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/forms/the-select-element/show-picker-multiple.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/forms/the-select-element/show-picker-size.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/forms/the-select-element/show-picker-user-gesture.tentative.html [new file with mode: 0644]