Bug 262089

Summary: PointerEvent.button should be -1 when mouse buttons are in released state
Product: WebKit Reporter: Abrar Rahman Protyasha <a_protyasha>
Component: UI EventsAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: RESOLVED FIXED    
Severity: Normal CC: a_protyasha, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.