New issue
Advanced search Search tips

Issue 805052 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug

Blocking:
issue 805007



Sign in to add a comment

Pointerlock doesn't release the pointer capture

Project Member Reported by nzolghadr@chromium.org, Jan 23 2018

Issue description

When a pointer is captured and pointer lock is requested pointer capture should be released and lock goes in place. This behavior seems to be failing
Testing with:
http://w3c-test.org/pointerevents/pointerlock/pointerevent_pointerlock_after_pointercapture-manual.html
 
Blocking: 805007

Comment 2 by eirage@chromium.org, Jan 23 2018

IIRC, we do release pointer capture when lock the pointer. And we has an automation for this test. Which platform is this test failing on? It seems pass on my macOs
Labels: OS-Windows
You are right. I should have been more specific. I also just tested on Mac and it passed for me. It failed on Windows 10.
Cc: -eirage@chromium.org
Owner: eirage@chromium.org
Description: Show this description
Status: Assigned (was: Available)
I put the wrong test link in the description at first. The first test was already passing.
Cc: mustaq@chromium.org
The pointer is not locked because of the lock is rejected by security check. (got a pointerlockerror event instead).
See: https://cs.chromium.org/chromium/src/chrome/browser/ui/exclusive_access/mouse_lock_controller.cc?gsn=RequestToLockMouse&l=57

This test is passed when enable UserActivationV2. 

Labels: OS-Chrome OS-Linux OS-Mac
The lock request is not made from within mousedown, so I don't see why the test was passing before.  The code around the user activation check at RenderWidgetMouseLockDispatcher::SendLockMouseRequest() hasn't changed except for UserActivationV2.
Project Member

Comment 10 by bugdroid1@chromium.org, Feb 6 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/932c27f9542f1f15b9c4b75493fd513796ba478e

commit 932c27f9542f1f15b9c4b75493fd513796ba478e
Author: Ella Ge <eirage@chromium.org>
Date: Tue Feb 06 15:23:36 2018

Update a pointerlock test

This CL update the wpt test pointerevent_pointerlock_after_pointercapture.

Previously this test request pointer lock on pointermove, it got a
pointerlockerror event because it doesn't request the lock in a user gesture.
This CL change the test to send lock request by a right click.

Bug:  805052 
Change-Id: I27b60475ccda94ca59e018ab76550379bc3852e4
Reviewed-on: https://chromium-review.googlesource.com/902450
Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Ella Ge <eirage@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534689}
[modify] https://crrev.com/932c27f9542f1f15b9c4b75493fd513796ba478e/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerlock/pointerevent_pointerlock_after_pointercapture-manual.html
[modify] https://crrev.com/932c27f9542f1f15b9c4b75493fd513796ba478e/third_party/WebKit/LayoutTests/external/wpt_automation/pointerevents/pointerlock/pointerevent_pointerlock_after_pointercapture-manual-automation.js

Status: Fixed (was: Assigned)

Sign in to add a comment