layout/base/crashtests/400185-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 <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
     2 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="setTimeout(doe, 30);" class="reftest-wait">
     3 <popupgroup id="a"/>
     4 <listcols>
     5 <nativescrollbar id="c">
     6 <treecols/>
     7 </nativescrollbar>
     8 </listcols>
    10 <script>
    11 function doe() {
    12   document.documentElement.id = "true";
    13   document.documentElement.removeChild(document.getElementById('a')); 
    14   var ne = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", 'popupgroup'); 
    15   document.documentElement.appendChild(ne); 
    16   document.getElementById('c').appendChild(document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", 'treecols'));
    17   document.documentElement.removeChild(ne);
    18   document.documentElement.removeAttribute("class");
    19 }
    20 </script>
    21 </window>

mercurial