Bug 262089 - PointerEvent.button should be -1 when mouse buttons are in released state
Summary: PointerEvent.button should be -1 when mouse buttons are in released state
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Abrar Rahman Protyasha
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-25 18:21 PDT by Abrar Rahman Protyasha
Modified: 2023-09-26 10:15 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abrar Rahman Protyasha 2023-09-25 18:21:26 PDT
The pointerevents/pointerevent_attributes_hoverable_pointers.html?mouse WPT is failing with (among other things) this error message:

```
mouse <pointereventtype>.button is -1 when mouse buttons are in released state.	(Expected -1 but got 0)
```

This failure can be observed for all pointer event types bar `pointerup` and `pointerdown`, and hits to us not faithfully reproducing the `button` property as specified in the Pointer Events W3C spec: https://w3c.github.io/pointerevents/#the-button-property.
Comment 1 Radar WebKit Bug Importer 2023-09-25 18:21:46 PDT
<rdar://problem/116027480>
Comment 2 Abrar Rahman Protyasha 2023-09-25 18:42:20 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18205
Comment 3 EWS 2023-09-26 10:15:50 PDT
Committed 268459@main (18348e5bdfbb): <https://commits.webkit.org/268459@main>

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