Bug 197007

Summary: [Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html
Product: WebKit Reporter: Antoine Quint <graouts>
Component: UI EventsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch dino: review+

Description Antoine Quint 2019-04-17 07:04:30 PDT
The test at imported/w3c/web-platform-tests/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html is timing out and is currently skipped.
Comment 1 Antoine Quint 2019-04-17 07:08:25 PDT
It appears requesting pointer lock does not work when called within a "pointerdown" event handler.
Comment 2 Antoine Quint 2019-04-18 07:09:35 PDT
I think the test is buggy, see https://github.com/web-platform-tests/wpt/issues/16406. However, tweaking the test shows failures.
Comment 3 Antoine Quint 2019-06-24 05:50:50 PDT
This test assumes that the pointerlockchange event is dispatched synchronously after calling requestPointerLock(). This is the reason it's timing out. It still fails afterwards though, so there is work to do.
Comment 4 Antoine Quint 2019-06-24 08:07:24 PDT
Created attachment 372762 [details]
Patch
Comment 5 Antoine Quint 2019-06-24 12:02:47 PDT
Committed r246753: <https://trac.webkit.org/changeset/246753>
Comment 6 Radar WebKit Bug Importer 2019-06-24 12:03:16 PDT
<rdar://problem/52063912>