layout/reftests/dom/multipleappendwithxul.xhtml

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
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 XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    20   var hbox = document.createElementNS(XUL_NS, "hbox");
    21   hbox.appendChild(document.createTextNode(5));
    22   parent.appendChild(hbox);
    24   document.body.offsetHeight;
    25   document.documentElement.className = "";
    26 }
    28 </script>
    29 </head>
    31 <body onload="boom();">
    32 <div id="parent">
    33   <div>1</div>
    34   <div>2</div>
    35 </div>
    36 </body>
    37 </html>

mercurial