[wpt-sync] Sync PR 42091 - Add showPicker() method to HTMLSelectElement interface
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox120 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 42091 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/42091
Details from upstream follow.
Luke Warlow <luke@warlow.dev> wrote:
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/6MUAqY2r3HgDemo: 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}
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 5 tests and 2 subtests
Status Summary
Firefox
OK : 5
PASS: 2
FAIL: 7
Chrome
OK : 5
PASS: 2
FAIL: 7
Safari
OK : 5
PASS: 2
FAIL: 7
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/forms/the-select-element/show-picker-cross-origin-iframe.tentative.html [wpt.fyi]
- Test showPicker() called from cross-origin iframe 1:
FAIL(Chrome:FAIL, Safari:FAIL) - Test showPicker() called from cross-origin iframe 3:
FAIL(Chrome:FAIL, Safari:FAIL)
- Test showPicker() called from cross-origin iframe 1:
- /html/semantics/forms/the-select-element/show-picker-disabled.tentative.html [wpt.fyi]
- select showPicker() throws when disabled:
FAIL(Chrome:FAIL, Safari:FAIL)
- select showPicker() throws when disabled:
- /html/semantics/forms/the-select-element/show-picker-multiple.tentative.html [wpt.fyi]
- select showPicker() does not throw when called on a <select multiple>:
FAIL(Chrome:FAIL, Safari:FAIL)
- select showPicker() does not throw when called on a <select multiple>:
- /html/semantics/forms/the-select-element/show-picker-size.tentative.html [wpt.fyi]
- select showPicker() does not throw when called on a <select size="4">:
FAIL(Chrome:FAIL, Safari:FAIL)
- select showPicker() does not throw when called on a <select size="4">:
- /html/semantics/forms/the-select-element/show-picker-user-gesture.tentative.html [wpt.fyi]
- select showPicker() requires a user gesture:
FAIL(Chrome:FAIL, Safari:FAIL) - select showPicker() does not throw when user activation is active:
FAIL(Chrome:FAIL, Safari:FAIL)
- select showPicker() requires a user gesture:
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7e6cc621e98a
https://hg.mozilla.org/mozilla-central/rev/61e6524bb2d0
Description
•