Bug 97722 - webkitPointerLockElement returns NULL until accepted.
Summary: webkitPointerLockElement returns NULL until accepted.
Status: RESOLVED DUPLICATE of bug 91186
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Vincent Scheib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 13:24 PDT by Vincent Scheib
Modified: 2012-10-01 12:29 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Scheib 2012-09-26 13:24:41 PDT
Reproduce on Chrome via:
1. use a blank profile, or clear mouse content settings
2. http://scheib.github.com/HTMLMisc/PointerLockAndFullscreen.html
3. Press "Pointer Lock Target1", but do NOT Accept mouse lock
4. Click to Lock the mouse again.

Expected:
Text on page reads:
document.webkitPointerLockElement unlocked

Actual:
document.webkitPointerLockElement locked to target1



Work around:
Apps track if they have already requested pointer lock and do not send an additional request when one is pending and hasn't received a change or error event.


Related Chrome issue 
https://code.google.com/p/chromium/issues/detail?id=152509
Comment 1 Vincent Scheib 2012-10-01 12:29:34 PDT

*** This bug has been marked as a duplicate of bug 91186 ***