https://github.com/mozilla/gecko-dev
Raw File
Tip revision: f8c9d69b7f4d153bebd63ec52cb5399a404f82b7 authored by ffxbld on 26 June 2015, 18:24:57 UTC
Added FIREFOX_39_0_RELEASE FIREFOX_39_0_BUILD5 tag(s) for changeset 78c25ce5f523. DONTBUILD CLOSED TREE a=release
Tip revision: f8c9d69
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 spellcheck=false></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