Bug 308308

Summary: Popover light dismiss doesn't account for disabled command buttons
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: DOMAssignee: Luke Warlow <lwarlow>
Status: ASSIGNED    
Severity: Normal CC: karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 26   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=308293

Luke Warlow
Reported 2026-02-20 08:01:14 PST
Popover light dismiss has special behaviour for buttons with commandfor, buttons with popovertarget and base selects. However the logic doesn't correctly exclude disabled command buttons leading to incorrect behaviour. See https://jsfiddle.net/8bd9ezvh/ opening the popover and then clicking on the disabled command button should correctly dismiss the popover (like in chrome and firefox) but it doesn't. See that with the popovertarget button it does dismiss.
Attachments
Luke Warlow
Comment 1 2026-02-20 08:04:41 PST
Radar WebKit Bug Importer
Comment 2 2026-02-27 08:02:12 PST
Note You need to log in before you can comment on or make changes to this bug.