Closed Bug 796992 Opened 12 years ago Closed 12 years ago

requestPointerLock not working to specification

Categories

(Firefox :: Untriaged, defect)

15 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 737100

People

(Reporter: pyalot, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0.1
Build ID: 20120907231835

Steps to reproduce:

Requesting pointer lock via HTMLElement.requestPointerLock does not work.

Test file is there: http://codeflow.org/issues/pointerlock-test.html click on either "Pointerlock" or "Fullscreen and Pointerlock" buttons.


Actual results:

The pointer was not locked.


Expected results:

According to the specification http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html this code should lock the pointer. It does work in Chrome 22 that way.
Duplicate of this one: https://bugzilla.mozilla.org/show_bug.cgi?id=737100
Our current implementation only grants pointer lock requests when we're in fullscreen mode, in order to piggyback on the security/permission model of fullscreen.

Bug 737100 is on file to grant pointer lock requests when not in fullscreen.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.