Bug 214865 - [WPE] Make Touchpoint ID unique
Summary: [WPE] Make Touchpoint ID unique
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-28 01:45 PDT by Marco Felsch
Modified: 2024-03-27 02:01 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.16 KB, patch)
2020-07-28 02:29 PDT, Marco Felsch
m.felsch: review?
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Felsch 2020-07-28 01:45:49 PDT
[WPE] Make Touchpoint ID unique
Comment 1 Marco Felsch 2020-07-28 02:29:00 PDT
Created attachment 405347 [details]
Patch
Comment 2 Zan Dobersek 2020-09-08 01:05:39 PDT
Comment on attachment 405347 [details]
Patch

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

> Source/WebKit/ChangeLog:13
> +        The web uses a unique touch point id. A few touch controllers reporting
> +        a unique ID by ABS_MT_TRACKING_ID [1] but libinput and the wayland-protocol
> +        don't take this information into account. Fix this within webkit to be
> +        independent of libinput, the wayland-protocol and a wayland-compositor.

Can you please elaborate in more detail what failures in the libinput/wayland infrastructure this change tries to work around?
Comment 3 Marco Felsch 2020-09-30 23:03:01 PDT
Comment on attachment 405347 [details]
Patch

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

>> Source/WebKit/ChangeLog:13
>> +        independent of libinput, the wayland-protocol and a wayland-compositor.
> 
> Can you please elaborate in more detail what failures in the libinput/wayland infrastructure this change tries to work around?

As I wrote a few input event devices delivering a unique ID but this gets ignored by libinput and isn't covered by the wayland-protocol at all.
Currently we are using the non unique touchpoint number to fill the web.touchpointID event. This is forbidden by the Spec if I got it correctly.
You can see the different behavior if you call your test page: https://people.igalia.com/clopez/wkbug/pointer-events/test.html on an iOS-Port Safari browser or on an WPE-Port cog (embedded device with touch is required).
Comment 4 Marco Felsch 2021-03-30 01:49:35 PDT
Ping
Comment 5 Bastian Krause 2023-02-03 05:41:55 PST
Updated version of the patch: https://github.com/WebKit/WebKit/pull/9599
Comment 6 EWS 2023-04-21 06:28:35 PDT
Committed 263237@main (057b735cbf91): <https://commits.webkit.org/263237@main>

Reviewed commits have been landed. Closing PR #9599 and removing active labels.