<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>97722</bug_id>
          
          <creation_ts>2012-09-26 13:24:41 -0700</creation_ts>
          <short_desc>webkitPointerLockElement returns NULL until accepted.</short_desc>
          <delta_ts>2012-10-01 12:29:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>91186</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vincent Scheib">scheib</reporter>
          <assigned_to name="Vincent Scheib">scheib</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>728915</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Scheib">scheib</who>
    <bug_when>2012-09-26 13:24:41 -0700</bug_when>
    <thetext>Reproduce on Chrome via:
1. use a blank profile, or clear mouse content settings
2. http://scheib.github.com/HTMLMisc/PointerLockAndFullscreen.html
3. Press &quot;Pointer Lock Target1&quot;, 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&apos;t received a change or error event.


Related Chrome issue 
https://code.google.com/p/chromium/issues/detail?id=152509</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731903</commentid>
    <comment_count>1</comment_count>
    <who name="Vincent Scheib">scheib</who>
    <bug_when>2012-10-01 12:29:34 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 91186 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>