https://github.com/mozilla/gecko-dev
Raw File
Tip revision: f37e493df6d68a7ed8e5532ef320f18c321579dc authored by ffxbld on 07 November 2012, 03:49:18 UTC
Added FENNEC_17_0b5_RELEASE FENNEC_17_0b5_BUILD1 tag(s) for changeset 70627adcd75f. DONTBUILD CLOSED TREE a=release
Tip revision: f37e493
bug632215-1.html
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  </head>
  <body>
    <iframe src="data:text/html,<body></body>"></iframe>
    <script>
      onload = function() {
        var i = document.querySelector("iframe");
        var d = i.contentDocument;
        var w = i.contentWindow;
        var s = w.getSelection();
        i.focus();
        d.body.contentEditable = true;
        d.body.contentEditable = false;
        d.designMode = "off";
        d.designMode = "on";
        d.body.focus();
        synthesizeKey("x", {});
        s.collapse(d.body.firstChild, 1);
        synthesizeKey("x", {});
        setTimeout(function() {
          document.documentElement.removeAttribute("class");
        }, 0);
      };
    </script>
  </body>
</html>
back to top