diff --git a/dom/tests/mochitest/pointerlock/file_pointerlock-api.html b/dom/tests/mochitest/pointerlock/file_pointerlock-api.html index 036635c97f13..8c5d0f9dfe51 100644 --- a/dom/tests/mochitest/pointerlock/file_pointerlock-api.html +++ b/dom/tests/mochitest/pointerlock/file_pointerlock-api.html @@ -75,11 +75,7 @@ window); document.addEventListener("mousemove", mouseMoveHandler); - requestAnimationFrame(() => { - setTimeout(() => { - synthesizeMouseAtCenter(div, {type: "mousemove"}, window); - }, 0); - }); + synthesizeMouseAtCenter(div, {type: "mousemove"}, window); } else { info("Got pointerlockchange for exiting"); pointerUnlocked = true;