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 593307"
4 width="100" height="100"
5 onload="onload();"
6 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
8 <script type="application/javascript"
9 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
11 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
12 </body>
14 <script class="testbody" type="application/javascript">
15 <![CDATA[
17 function onload()
18 {
19 var SimpleTest = window.opener.SimpleTest;
20 SimpleTest.ok(window.screenX >= 0, "centerscreen window should not start offscreen (X coordinate)");
21 SimpleTest.ok(window.screenY >= 0, "centerscreen window should not start offscreen (Y coordinate)");
22 window.opener.finished();
23 }
24 ]]>
25 </script>
27 </window>