layout/xul/tree/crashtests/585815-iframe.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.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 3 onload="setInterval(run, 25)">
michael@0 4
michael@0 5 <tree flex="1" rows="2">
michael@0 6 <treecols>
michael@0 7 <treecol id="sender" label="Sender" flex="1"/>
michael@0 8 <treecol id="subject" label="Subject" flex="2"/>
michael@0 9 </treecols>
michael@0 10 <treechildren>
michael@0 11 <treeitem>
michael@0 12 <treerow>
michael@0 13 <treecell label="joe@somewhere.com"/>
michael@0 14 <treecell label="Top secret plans"/>
michael@0 15 </treerow>
michael@0 16 </treeitem>
michael@0 17 <treeitem>
michael@0 18 <treerow>
michael@0 19 <treecell label="mel@whereever.com"/>
michael@0 20 <treecell label="Let's do lunch"/>
michael@0 21 </treerow>
michael@0 22 </treeitem>
michael@0 23 <treeitem>
michael@0 24 <treerow>
michael@0 25 <treecell label="mel@whereever.com"/>
michael@0 26 <treecell label="Let's do lunch"/>
michael@0 27 </treerow>
michael@0 28 </treeitem>
michael@0 29 <treeitem>
michael@0 30 <treerow>
michael@0 31 <treecell label="mel@whereever.com"/>
michael@0 32 <treecell label="Let's do lunch"/>
michael@0 33 </treerow>
michael@0 34 </treeitem>
michael@0 35 <treeitem>
michael@0 36 <treerow>
michael@0 37 <treecell label="mel@whereever.com"/>
michael@0 38 <treecell label="Let's do lunch"/>
michael@0 39 </treerow>
michael@0 40 </treeitem>
michael@0 41 <treeitem>
michael@0 42 <treerow>
michael@0 43 <treecell label="mel@whereever.com"/>
michael@0 44 <treecell label="Let's do lunch"/>
michael@0 45 </treerow>
michael@0 46 </treeitem>
michael@0 47 <treeitem>
michael@0 48 <treerow>
michael@0 49 <treecell label="mel@whereever.com"/>
michael@0 50 <treecell label="Let's do lunch"/>
michael@0 51 </treerow>
michael@0 52 </treeitem>
michael@0 53 <treeitem>
michael@0 54 <treerow>
michael@0 55 <treecell label="mel@whereever.com"/>
michael@0 56 <treecell label="Let's do lunch"/>
michael@0 57 </treerow>
michael@0 58 </treeitem>
michael@0 59 </treechildren>
michael@0 60 </tree>
michael@0 61
michael@0 62 <script type="text/javascript"><![CDATA[
michael@0 63 function run() {
michael@0 64 var tree = document.getElementsByTagName("tree")[0];
michael@0 65 var sel = tree.treeBoxObject.view.selection;
michael@0 66 sel.rangedSelect(0, 0, true);
michael@0 67 sel.rangedSelect(1000, 1001, true);
michael@0 68 sel.adjustSelection(1, 0x7fffffff);
michael@0 69 }
michael@0 70 ]]></script>
michael@0 71
michael@0 72 </window>
michael@0 73

mercurial