tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a75a3b454a480f160aac567b23e3841b59548a12
parent 3df2f204043cdd204a77b3fae34f61fc4b842d3b
Author: Joey Arhar <jarhar@chromium.org>
Date:   Tue, 14 Oct 2025 22:23:10 +0000

Bug 1992852 [wpt PR 55258] - Make customizable select open on enter on windows, a=testonly

Automatic update from web-platform-tests
Make customizable select open on enter on windows

This makes customizable select match appearance:auto select behavior,
where pressing enter is supposed to open the picker on windows but not
mac.

Fixed: 429647164
Change-Id: Ibe82f5869cfddf84cb8d9c25ea89004da898a080
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6994439
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1525837}

--

wpt-commits: e405a4bc67c8cb085132ae6f87506b85deedec5f
wpt-pr: 55258

Diffstat:
Mtesting/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-keyboard-behavior.optional.html | 19+++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-keyboard-behavior.optional.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-keyboard-behavior.optional.html @@ -126,12 +126,6 @@ for (const id of ['defaultbutton', 'custombutton']) { promise_test(async t => { addCloseCleanup(t); - - await test_driver.send_keys(select, Enter); - await new Promise(requestAnimationFrame); - assert_false(select.matches(':open'), - 'Enter should not open the listbox when outside a form.'); - form.appendChild(select); let formWasSubmitted = false; form.addEventListener('submit', event => { @@ -141,10 +135,15 @@ for (const id of ['defaultbutton', 'custombutton']) { await test_driver.send_keys(select, Enter); await new Promise(requestAnimationFrame); assert_false(formWasSubmitted, - 'Enter should submit the form when the listbox is closed.'); - assert_false(select.matches(':open'), - 'Enter should not open the listbox when it is in a form.'); - }, `${id}: When the listbox is closed, the enter key should submit the form or do nothing.`); + 'Enter should not submit the form when the listbox is closed.'); + if (navigator.platform.startsWith('Mac')) { + assert_false(select.matches(':open'), + 'Enter should not open the listbox on Mac platforms.'); + } else { + assert_true(select.matches(':open'), + 'Enter should open the listbox on non-Mac platforms.'); + } + }, `${id}: When the listbox is closed, the enter key should not trigger form submission.`); promise_test(async t => { addCloseCleanup(t);