Bug 270332

Summary: [WPE] WPE Platform: Crashes due to failure to track touch points
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: WPE WebKitAssignee: Lauro Moura <lmoura>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Lauro Moura
Reported 2024-02-29 21:40:01 PST
By default, WTF::HashMap disallows 0 (zero) as a valid key, as currently we do in WPEWaylandSeat.h. This conflicts with using 0 as the ID of the first touchpoint. As such, the current code is treating each event as a new point, filing up the reserved space, leading to crashes. Also, as we start tracking a point in the down event, we should ignore it after the up event.
Attachments
Lauro Moura
Comment 1 2024-02-29 22:00:55 PST
EWS
Comment 2 2024-03-01 07:09:58 PST
Committed 275553@main (c79050dd5ea4): <https://commits.webkit.org/275553@main> Reviewed commits have been landed. Closing PR #25336 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.