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