xpfe/test/winopen.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"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 2 <window
michael@0 3 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 4 orient="vertical"
michael@0 5 height="300"
michael@0 6 width="400"
michael@0 7 windowtype="opener:test"
michael@0 8 onunload="restoreChromeURL();"
michael@0 9 onload="scheduleNextWindow();">
michael@0 10
michael@0 11 <script src="winopen.js" type="application/x-javascript"></script>
michael@0 12
michael@0 13 <groupbox orient="vertical">
michael@0 14 <caption label="Window Opening Test"/>
michael@0 15 <html>
michael@0 16 This will open a series of browser windows, either "one at a
michael@0 17 time" or in a sequence of some form. When this test is complete
michael@0 18 a final window will be opened which will report the overall results.
michael@0 19 </html>
michael@0 20 <separator class="thick"/>
michael@0 21 <grid>
michael@0 22 <columns><column/><column/></columns>
michael@0 23 <rows>
michael@0 24 <row align="center">
michael@0 25 <text value="Index:"/>
michael@0 26 <textbox id="formIndex" size="6" value=""/>
michael@0 27 </row>
michael@0 28 <row align="center">
michael@0 29 <text value="Time:"/>
michael@0 30 <textbox id="formTime" size="6" value=""/>
michael@0 31 <text value="msec"/>
michael@0 32 </row>
michael@0 33 </rows>
michael@0 34 </grid>
michael@0 35 <separator class="thick"/>
michael@0 36 </groupbox>
michael@0 37
michael@0 38 <groupbox orient="vertical">
michael@0 39 <caption label="Results"/>
michael@0 40 <grid>
michael@0 41 <columns>
michael@0 42 <column/>
michael@0 43 <column/>
michael@0 44 </columns>
michael@0 45 <rows>
michael@0 46 <row align="center">
michael@0 47 <text value="Times (ignoring the first):"/>
michael@0 48 <textbox id="formTimes" size="45" value=""/>
michael@0 49 </row>
michael@0 50 <row align="center">
michael@0 51 <text value="Txul (median):"/>
michael@0 52 <hbox>
michael@0 53 <textbox id="formMed" size="6" value=""/>
michael@0 54 <spring/>
michael@0 55 <button id="formAgain" onclick="tryAgain();" label="Try again" disabled="true"/>
michael@0 56 </hbox>
michael@0 57 </row>
michael@0 58 <row align="center">
michael@0 59 <text value="Avg:"/>
michael@0 60 <hbox><textbox id="formAvg" size="6" value=""/></hbox>
michael@0 61 </row>
michael@0 62 <row align="center">
michael@0 63 <text value="Min:"/>
michael@0 64 <hbox><textbox id="formMin" size="6" value=""/></hbox>
michael@0 65 </row>
michael@0 66 <row align="center">
michael@0 67 <text value="Max:"/>
michael@0 68 <hbox><textbox id="formMax" size="6" value=""/></hbox>
michael@0 69 </row>
michael@0 70 </rows>
michael@0 71 </grid>
michael@0 72 </groupbox>
michael@0 73
michael@0 74 </window>
michael@0 75

mercurial