Bug 228877

Summary: [GLIB] fast/events/check-defocus-event-order-when-triggered-by-mouse-click.html fails due to rounded corners
Product: WebKit Reporter: Arcady Goldmints-Orlov <crzwdjk>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Arcady Goldmints-Orlov 2021-08-06 14:51:52 PDT
The test in question moves the mouse pointer to the top left corner of an input element and tries to click, but on GTK/WPE this misses if the system theme results in the element having rounded corners, meaning the top left corner of the bounding box is not actually inside the element. It should move the mouse to the center instead.
Comment 1 Arcady Goldmints-Orlov 2021-08-06 14:53:32 PDT
Created attachment 435092 [details]
Patch
Comment 2 Arcady Goldmints-Orlov 2021-08-07 07:31:37 PDT
For what it's worth a quick search of other tests that use eventSender.mouseMoveTo with offsetLeft shows that the overwhelming majority use some kind of offset, presumably because of exactly this sort of issue.
Comment 3 EWS 2021-08-09 09:06:13 PDT
Committed r280779 (240363@main): <https://commits.webkit.org/240363@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 435092 [details].
Comment 4 Radar WebKit Bug Importer 2021-08-09 09:07:17 PDT
<rdar://problem/81697626>