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.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 3 | <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" |
michael@0 | 4 | type="text/css"?> |
michael@0 | 5 | |
michael@0 | 6 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 7 | title="Table indices of accessible table for XUL listbox"> |
michael@0 | 8 | |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
michael@0 | 11 | |
michael@0 | 12 | <script type="application/javascript" |
michael@0 | 13 | src="../common.js"></script> |
michael@0 | 14 | <script type="application/javascript" |
michael@0 | 15 | src="../table.js"></script> |
michael@0 | 16 | |
michael@0 | 17 | <script type="application/javascript"> |
michael@0 | 18 | <![CDATA[ |
michael@0 | 19 | function doTest() |
michael@0 | 20 | { |
michael@0 | 21 | var idxes = [ |
michael@0 | 22 | [0, 1, 2], |
michael@0 | 23 | [3, 4, 5], |
michael@0 | 24 | [6, 7, 8] |
michael@0 | 25 | ]; |
michael@0 | 26 | testTableIndexes("listbox", idxes); |
michael@0 | 27 | |
michael@0 | 28 | SimpleTest.finish(); |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 32 | addA11yLoadEvent(doTest); |
michael@0 | 33 | ]]> |
michael@0 | 34 | </script> |
michael@0 | 35 | |
michael@0 | 36 | <hbox style="overflow: auto;"> |
michael@0 | 37 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 38 | <a target="_blank" |
michael@0 | 39 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424" |
michael@0 | 40 | title="implement IAccessibleTable2"> |
michael@0 | 41 | Mozilla Bug 512424 |
michael@0 | 42 | </a> |
michael@0 | 43 | |
michael@0 | 44 | <p id="display"></p> |
michael@0 | 45 | <div id="content" style="display: none"> |
michael@0 | 46 | </div> |
michael@0 | 47 | <pre id="test"> |
michael@0 | 48 | </pre> |
michael@0 | 49 | </body> |
michael@0 | 50 | |
michael@0 | 51 | <vbox flex="1"> |
michael@0 | 52 | |
michael@0 | 53 | <label control="listbox" value="multicolumn listbox with header"/> |
michael@0 | 54 | <listbox id="listbox"> |
michael@0 | 55 | <listhead> |
michael@0 | 56 | <listheader label="header1"/> |
michael@0 | 57 | <listheader label="header2"/> |
michael@0 | 58 | <listheader label="header3"/> |
michael@0 | 59 | </listhead> |
michael@0 | 60 | <listcols> |
michael@0 | 61 | <listcol flex="1"/> |
michael@0 | 62 | <listcol flex="1"/> |
michael@0 | 63 | <listcol flex="1"/> |
michael@0 | 64 | </listcols> |
michael@0 | 65 | <listitem> |
michael@0 | 66 | <listcell label="cell0"/> |
michael@0 | 67 | <listcell label="cell1"/> |
michael@0 | 68 | <listcell label="cell2"/> |
michael@0 | 69 | </listitem> |
michael@0 | 70 | <listitem> |
michael@0 | 71 | <listcell label="cell3"/> |
michael@0 | 72 | <listcell label="cell4"/> |
michael@0 | 73 | <listcell label="cell5"/> |
michael@0 | 74 | </listitem> |
michael@0 | 75 | <listitem> |
michael@0 | 76 | <listcell label="cell6"/> |
michael@0 | 77 | <listcell label="cell7"/> |
michael@0 | 78 | <listcell label="cell8"/> |
michael@0 | 79 | </listitem> |
michael@0 | 80 | </listbox> |
michael@0 | 81 | </vbox> |
michael@0 | 82 | </hbox> |
michael@0 | 83 | |
michael@0 | 84 | </window> |
michael@0 | 85 |