Bug 235022

Summary: Modal container observer should classify elements that are styled like clickable controls
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: PlatformAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, bdakin, megan_gardner, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

Description Wenson Hsieh 2022-01-09 15:46:16 PST
.
Comment 1 Wenson Hsieh 2022-01-10 10:42:26 PST
Created attachment 448772 [details]
Patch
Comment 2 Tim Horton 2022-01-10 12:58:12 PST
Comment on attachment 448772 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=448772&action=review

> Source/WebCore/page/ModalContainerObserver.cpp:300
> +static bool listensForUserActivation(const Element& element)

This seems like a handy thing, I'm surprised it's unique to this code.
Comment 3 Wenson Hsieh 2022-01-10 13:09:53 PST
(In reply to Tim Horton from comment #2)
> Comment on attachment 448772 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=448772&action=review
> 
> > Source/WebCore/page/ModalContainerObserver.cpp:300
> > +static bool listensForUserActivation(const Element& element)
> 
> This seems like a handy thing, I'm surprised it's unique to this code.

True! I suppose it is similar to the list in `Node::willRespondToMouseClickEvents()`, but with the addition of some pointer and touch events (and without the editability check).

I could imagine moving it to somewhere like `Node` in the future, if more things outside of ModalContainerObserver find it useful...
Comment 4 EWS 2022-01-10 15:00:03 PST
Committed r287860 (245904@main): <https://commits.webkit.org/245904@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448772 [details].
Comment 5 Radar WebKit Bug Importer 2022-01-10 15:01:16 PST
<rdar://problem/87364047>