content/base/crashtests/354645-1.xul

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 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();" class="reftest-wait">
     3 <script type="text/javascript">
     5 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
     7 function boom()
     8 {
     9   var A = document.getElementById("A");
    10   var B = document.createElementNS(XUL_NS, "tabs");
    11   var C = document.createElementNS(XUL_NS, "hbox");
    12   B.appendChild(C);
    13   A.appendChild(B);
    14 }
    16 function remove(n)
    17 {
    18   n.parentNode.removeChild(n);
    19 }
    21 </script>
    23 <hbox id="A" onselect="remove(event.originalTarget); document.documentElement.removeAttribute('class');"></hbox>
    25 </window>

mercurial