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 <window title="Mozilla Bug 478536"
4 onload="start();"
5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
7 <script type="application/javascript"
8 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
10 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
11 </body>
13 <script class="testbody" type="application/javascript">
14 <![CDATA[
16 function ok(aCondition, aMessage)
17 {
18 window.opener.wrappedJSObject.SimpleTest.ok(aCondition, aMessage);
19 }
21 function is(aLeft, aRight, aMessage)
22 {
23 window.opener.wrappedJSObject.SimpleTest.is(aLeft, aRight, aMessage);
24 }
26 function isnot(aLeft, aRight, aMessage)
27 {
28 window.opener.wrappedJSObject.SimpleTest.isnot(aLeft, aRight, aMessage);
29 }
31 function start() {
32 var oldWidth = window.outerWidth, oldHeight = window.outerHeight;
33 window.maximize();
34 window.restore();
35 is(window.outerWidth, oldWidth, "wrong window width after maximize+restore");
36 is(window.outerHeight, oldHeight, "wrong window height after maximize+restore");
37 window.opener.wrappedJSObject.SimpleTest.finish();
38 window.close();
39 }
42 ]]>
43 </script>
45 </window>