layout/base/tests/bug632215-2.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3   <head>
     4     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     5   </head>
     6   <body>
     7     <iframe src="data:text/html,<body contenteditable spellcheck=false></body>"></iframe>
     8     <script>
     9       onload = function() {
    10         var i = document.querySelector("iframe");
    11         var d = i.contentDocument;
    12         var w = i.contentWindow;
    13         var s = w.getSelection();
    14         i.focus();
    15         d.body.contentEditable = false;
    16         d.designMode = "off";
    17         d.designMode = "on";
    18         d.body.focus();
    19         synthesizeKey("x", {});
    20         s.collapse(d.body.firstChild, 1);
    21         synthesizeKey("x", {});
    22         setTimeout(function() {
    23           document.documentElement.removeAttribute("class");
    24         }, 0);
    25       };
    26     </script>
    27   </body>
    28 </html>

mercurial