diff --git a/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html b/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html index 45000c743944..200feec207ab 100644 --- a/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html +++ b/dom/tests/mochitest/pointerlock/file_screenClientXYConst.html @@ -53,7 +53,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=633602 todo(false, "mousemove is fired twice."); } - isUnlocked = !document.mozPointerLockElement; unLockedCoords = { screenX: e.screenX, screenY: e.screenY, @@ -65,6 +64,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=633602 return; } + isUnlocked = !document.mozPointerLockElement; div.mozRequestPointerLock(); }