Bug 262661

Summary: [PointerEvents] preventsCompatibilityMouseEvents is not being reset on Pointer[Up/Cancel] dispatch
Product: WebKit Reporter: Abrar Rahman Protyasha <a_protyasha>
Component: UI EventsAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: NEW ---    
Severity: Normal CC: a_protyasha, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=262723

Description Abrar Rahman Protyasha 2023-10-04 15:47:51 PDT
As described in https://www.w3.org/TR/pointerevents/#mapping-for-devices-that-support-hover, whenever a UA dispatches a pointer event:

> "6. If the pointer event dispatched was pointerup or pointercancel, clear the PREVENT MOUSE EVENT flag for this pointerType."

We make sure to implement the earlier case (#4) of setting the PREVENT MOUSE EVENT flag if the pointer event dispatched was pointerdown and the event was canceled, but not this case. Let's fix that.
Comment 1 Radar WebKit Bug Importer 2023-10-04 15:48:00 PDT
<rdar://problem/116490176>
Comment 2 Abrar Rahman Protyasha 2023-10-04 15:54:51 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18657