Tue, 06 Jan 2015 21:39:09 +0100
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>