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 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 6 | |
michael@0 | 7 | <browser type="content" |
michael@0 | 8 | src="data:text/html,<script>var x = new XMLHttpRequest(); x.onreadystatechange = function() {}</script>"/> |
michael@0 | 9 | |
michael@0 | 10 | <script type="application/javascript"><![CDATA[ |
michael@0 | 11 | window.onload = function() { |
michael@0 | 12 | var z = new XPCNativeWrapper(window.frames[0].wrappedJSObject.x).onreadystatechange; |
michael@0 | 13 | var t = window.opener.SimpleTest; |
michael@0 | 14 | t.ok(true, "Hey, we didn't crash"); |
michael@0 | 15 | window.close(); |
michael@0 | 16 | t.finish(); |
michael@0 | 17 | } |
michael@0 | 18 | ]]> |
michael@0 | 19 | </script> |
michael@0 | 20 | |
michael@0 | 21 | </window> |