After calling element.webkitRequestPointerLock, document.webkitPointerLockElement must be null until the pointer actually is locked and a webkitpointerlockchange event is dispatched.
Created attachment 162115 [details] Patch
Committed r127606: <http://trac.webkit.org/changeset/127606>
*** Bug 97722 has been marked as a duplicate of this bug. ***