Bug 919106 - Not check pointer lock element for non-first mousemove call in screenClientXYConst test. rs=RyanVM
authorXidorn Quan <quanxunzhen@gmail.com>
Wed, 17 Jun 2015 23:32:04 +1000
changeset 249345 1e17258d3213ac375ac59ce8d82a15ce9df4242e
parent 249344 cb60a073ee00494a6820723507099352427b51b9
child 249346 cd97bdca42133de713aabd337be4b39c839e955f
push id28923
push userryanvm@gmail.com
push dateWed, 17 Jun 2015 18:57:11 +0000
treeherdermozilla-central@099d6cd6725e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRyanVM
bugs919106
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 919106 - Not check pointer lock element for non-first mousemove call in screenClientXYConst test. rs=RyanVM
dom/tests/mochitest/pointerlock/file_screenClientXYConst.html
--- a/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html
+++ b/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html
@@ -48,28 +48,28 @@ https://bugzilla.mozilla.org/show_bug.cg
       }
 
       function moveUnlocked(e) {
         var firstCall = !unLockedCoords;
         if (!firstCall) {
           todo(false, "mousemove is fired twice.");
         }
 
-        isUnlocked = !document.mozPointerLockElement;
         unLockedCoords = {
           screenX: e.screenX,
           screenY: e.screenY,
           clientX: e.clientX,
           clientY: e.clientY
         };
 
         if (!firstCall) {
           return;
         }
 
+        isUnlocked = !document.mozPointerLockElement;
         div.mozRequestPointerLock();
       }
 
       function moveLocked(e) {
         div.removeEventListener("mousemove", moveLocked, false);
 
         isLocked = !!document.mozPointerLockElement;
         lockedCoords = {