Revert "Bug 1950748 part 3: Don't return a caret inside an editor when no editor is focused. r=morgan" as requested for causing accessibility crashes (bug 1977012).
This reverts commit aaf970807d281c28c1e937491719d996cb11648a.
This reverts commit f5f2e3cf4d34c2430372ba790d77620837d56b75.
This reverts commit 5565c5899c32c0b0f5446561a21c5b6499fd44c6.
<!DOCTYPE HTML><html><!--https://bugzilla.mozilla.org/show_bug.cgi?id=647518--><head><title>Test for Bug 647518</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/></head><body><atarget="_blank"href="https://bugzilla.mozilla.org/show_bug.cgi?id=647518">Mozilla Bug 647518</a><pid="display"></p><divid="content"style="display: none"></div><preid="test"><scripttype="application/javascript">/** Test for Bug 647518 **/SimpleTest.waitForExplicitFinish();varcounter=3;varcalled=false;varhandle1=window.requestAnimationFrame(function(){called=true;});ok(handle1>0,"Should get back a nonzero handle");functionchecker(){--counter;if(counter==0){is(called,false,"Canceled callback should not have been called");SimpleTest.finish();}else{window.requestAnimationFrame(checker);}}window.requestAnimationFrame(checker);window.cancelAnimationFrame(handle1);</script></pre></body></html>