https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 986c67ce6834fc15701ff8dd02b4422f463bcc60 authored by Bryce Seager van Dyk on 26 April 2021, 20:52:47 UTC
Bug 1707559 - Stub out QueryOutputProtectionStatus. r=jbauman, a=jcristau
Tip revision: 986c67c
bug632215-1.html
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <script src="/tests/SimpleTest/EventUtils.js"></script>
  </head>
  <body>
    <iframe srcdoc="<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();
        sendString("x");
        s.collapse(d.body.firstChild, 1);
        sendString("x");
        setTimeout(function() {
          document.documentElement.removeAttribute("class");
        }, 0);
      };
    </script>
  </body>
</html>
back to top