Bug 226727

Summary: Crash when removing PointerLock target on mouseup
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, graouts, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
URL: http://wpt.live/pointerlock/pointerlock_remove_target_on_mouseup.html

Description Sam Sneddon [:gsnedders] 2021-06-07 05:53:50 PDT
1. Load http://wpt.live/pointerlock/pointerlock_remove_target_on_mouseup.html
2. Click anywhere
3. Immediate crash on mouse click

Per https://wpt.fyi, this is not a regression.

<rdar://78944284>
Comment 1 Ahmad Saleem 2022-08-12 14:43:01 PDT
It does not crash Safari tab or browser window but in Safari 15.6 on macOS 12.5 output this:

Harness status: Error

Rerun
Unhandled rejection: unimplemented
action_sequence@http://wpt.live/resources/testdriver.js:685:44
send@http://wpt.live/resources/testdriver-actions.js:99:41
global code@http://wpt.live/pointerlock/pointerlock_remove_target_on_mouseup.html:29:21

It shows this as "PASS" though and same as with Safari Technical Preview 151.

Same error appears on all browsers (Firefox Nightly 105 and Chrome Canary 106). I am not sure whether it is an issue with test case or it is something missing across all browsers. Thanks!
Comment 2 Ryosuke Niwa 2022-08-12 15:38:23 PDT
That test requires web driver, and cannot be run manually in a browser. That's why harness failure happens.
Comment 3 Ryosuke Niwa 2022-08-12 22:04:04 PDT
Hm... I don't reproduce the crash, and wpt.fyi says we're passing.