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 version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
4 type="text/css"?>
6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7 title="Table accessible tree and table interface tests for XUL trees">
9 <script type="application/javascript"
10 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
12 <script type="application/javascript"
13 src="../treeview.js" />
15 <script type="application/javascript"
16 src="../common.js" />
17 <script type="application/javascript"
18 src="../events.js" />
19 <script type="application/javascript"
20 src="../role.js" />
21 <script type="application/javascript"
22 src="../table.js" />
24 <script type="application/javascript">
25 <![CDATA[
26 ////////////////////////////////////////////////////////////////////////////
27 // Test
29 // gA11yEventDumpID = "debug";
31 function doTest()
32 {
33 var cellsArray = [
34 [kDataCell, kDataCell],
35 [kDataCell, kDataCell],
36 [kDataCell, kDataCell]
37 ];
39 testTableStruct("table", cellsArray, kTreeColumnHeader);
41 SimpleTest.finish();
42 }
44 SimpleTest.waitForExplicitFinish();
45 addA11yXULTreeLoadEvent(doTest, "table", new nsTableTreeView(3));
46 ]]>
47 </script>
49 <hbox flex="1" style="overflow: auto;">
50 <body xmlns="http://www.w3.org/1999/xhtml">
51 <a target="_blank"
52 href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424"
53 title="implement IAccessibleTable2">
54 Mozilla Bug 512424
55 </a><br/>
56 <p id="display"></p>
57 <div id="content" style="display: none">
58 </div>
59 <pre id="test">
60 </pre>
61 </body>
63 <vbox id="debug"/>
64 <tree id="table" flex="1">
65 <treecols>
66 <treecol id="col" flex="1" label="column"/>
67 <treecol id="scol" flex="1" label="column 2"/>
68 </treecols>
69 <treechildren id="treechildren"/>
70 </tree>
71 </hbox>
73 </window>