editor/reftests/824080-2.html
author Jed Davis <jld@mozilla.com>
Tue, 03 Oct 2017 20:35:28 -0600
changeset 432370 fad5c108c84a9af12b9126101bdbe2772bdc59aa
parent 416486 176faadcb01bb344a118bcbf6b95147984516739
permissions -rw-r--r--
Bug 1401666 - Adjust sandbox policy to allow Mesa 12 to use libudev for device identification. r=gcp, a=ritu MozReview-Commit-ID: JRRI9nd83TP

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
    function doTest()
    {
      document.getSelection().selectAllChildren(document.getElementById("text"));
      var editor = document.getElementById("editor");
      var editorBody = editor.contentDocument.body;
      editor.contentDocument.getSelection().selectAllChildren(editorBody);
      editor.focus();
      editor.blur();
    }
  </script>
</head>
<body>
<p id="text">normal text</p>
<iframe id="editor" onload="doTest();"
  srcdoc="<script>document.designMode='on';</script><body>editable text</body>"></iframe>
</body>
</html>