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 <html>
2 <head>
3 <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
4 <script type="application/javascript" src="utils_bug260264.js"></script>
5 </head>
6 <body>
7 <a id="nested link" href="javascript:(function(){})()">nested link</a>
8 <script type="application/javascript">
9 var event = location.hash.split("#").pop();
10 send(document.getElementById("nested link"), event, function() {
11 var popup = window.open("http://example.com"),
12 grandparent = window.open("", "parent260264");
13 try { grandparent.report(popup) }
14 finally { popup && popup.close() }
15 });
16 </script>
17 </body>
18 </html>