Backed out changeset deff068cb017 (bug 1849369) for marionette dialog related failure...
[gecko.git] / editor / reftests / caret_on_presshell_reinit-ref.html
blob262c67a74890a9900346bd695e7a326cb63476c9
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div style="position: absolute">
5 <iframe srcdoc="<body contenteditable>foo</body>"></iframe>
6 </div>
7 <script type="text/javascript">
8 onload = function() {
9 var iframe = document.querySelector("iframe");
10 var win = iframe.contentWindow;
11 var body = win.document.body;
12 iframe.focus();
13 body.focus();
14 var sel = win.getSelection();
15 sel.collapse(body.firstChild, 0);
17 </script>
18 </body>
19 </html>