1
edit
Changes
→High-Level Mouse Lock Implementation Tasks
# "User agents may prompt for confirmation before locking, this preference may be saved as a content setting" How to deal with this? What UI do we use? See also, "Repeated escapes of mouse lock can signal user agent to not re-lock the mouse without more specific user intent gesture, e.g. similar to how Chrome suppresses repeated alert() calls"
# Tests, tests, tests. We need tests for all aspects of the spec. The central repo with all the tests are located [https://github.com/rhung/mozilla-central/tree/mouselock-tests here]. List tests we need below:
## "there is no limit to how far movement can go...not limited by screen boundaries" -- mouse lock should mean infinite movement in the X and Y axes...There will be no limit to movementX/Y values if the mouse is continuously moved in a single direction"## and "The concept of the mouse cursor will have been removed, and it will not move off the window or be clamped by a screen edge"- hchun
## "no mouse cursor is displayed" -- mouse cursor should be hidden while locked
## navigator.pointer (readonly) is a MouseLockable - <strong>abhatnagar</strong>
## MouseLockable has lock(), unlock(), islocked() - <strong>abhatnagar</strong>
## islocked() returns true if mouse is locked, false if not locked - Jesse<strong>JSilver999</strong>## lock(target) expects a DOM element, and takes two optional callbacks: successcallback, failurecallback.- <strong>JSilver999</strong>## lock() should return immediately and call callbacks when lock succeeds or fails- <strong>JSilver999</strong>
## "Mouse lock must succeed only if the window is in focus" - <strong>mjschranz</strong>
## "Mouse lock must succeed only if...the user-agent is the active application of the operating system"