content/xul/document/crashtests/583230.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">
     3 <richlistbox id="a" datasources="" template="d"/>
     4 <script><![CDATA[    
     5 function doe() {
     6 var node = document.getElementById('a');
     7 var b = node.builder;
     8 document.removeChild(document.documentElement);
     9 b.addResult({}, node);
    10 b.removeResult({});
    11 b.replaceResult({}, {}, node);
    12 b.resultBindingChanged({});
    13 try { b.addResult(null, null); } catch(ex) { }
    14 try { b.removeResult(null); } catch(ex) { }
    15 try { b.replaceResult(null, null, null); } catch(ex) { }
    16 try { b.resultBindingChanged(null); } catch(ex) { }
    17 try { b.getResultForId("empty"); } catch(ex) { }
    18 try { b.getResultForContent(node); } catch(ex) { }
    19 try { b.hasGeneratedContent(null, null); } catch(ex) { }
    20 }
    21 window.addEventListener("load", doe, false);
    22 ]]></script>
    23 </window>

mercurial