layout/reftests/dom/multipleappendwithinput.xhtml

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     2 <head>
     3 <script type="text/javascript">
     5 function boom()
     6 {
     7   document.body.offsetHeight;
     9   var parent = document.getElementById("parent");
    11   var newelt = document.createElement("div");
    12   newelt.appendChild(document.createTextNode(3));
    13   parent.appendChild(newelt);
    15   newelt = document.createElement("div");
    16   newelt.appendChild(document.createTextNode(4));
    17   parent.appendChild(newelt);
    19   var input = document.createElement("input");
    20   input.setAttribute("type", "text");
    21   parent.appendChild(input);
    23   document.body.offsetHeight;
    24   document.documentElement.className = "";
    25 }
    27 </script>
    28 </head>
    30 <body onload="boom();">
    31 <div id="parent">
    32   <div>1</div>
    33   <div>2</div>
    34 </div>
    35 </body>
    36 </html>

mercurial