Closed Bug 1948081 Opened 11 days ago Closed 6 days ago

[wpt-sync] Sync PR 50688 - Fix interactive elements in customizable select picker

Categories

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

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joey Arhar <jarhar@chromium.org> wrote:

Fix interactive elements in customizable select picker

MenuListSelectType::DefaultEventHandler has code which may focus the
select element, show/hide the picker, and prevent other default event
handlers from running. This code runs when clicking anything in the
picker since we aren't looking at the event path anymore. This results
in interactive elements not being clickable/focusable in the picker.
This patch fixes this by not running any of this code while the base
appearance picker is open.

This likely stopped working when the PopoverButtonNestingBehavior flag
was used in MenuListSelectType::DefaultEventHandler because the old code
there which no longer gets run would also prevent the
DefaultEventHandler from doing anything in this case.

Change-Id: I5240766badaa0025072bf3123e5dd9f18466de99

Reviewed-on: https://chromium-review.googlesource.com/6240329
WPT-Export-Revision: 955f079bf7dfe75e2b84562f9583740afc3bc426

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 3
PASS : 2
FAIL : 11

Chrome

OK : 3
PASS : 10
FAIL : 3

Safari

OK : 2
FAIL : 4
ERROR : 1
NOTRUN: 9

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b82d458a82a8 [wpt PR 50688] - Fix interactive elements in customizable select picker, a=testonly https://hg.mozilla.org/integration/autoland/rev/f6cd0e7980ff [wpt PR 50688] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.