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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
6 function boom()
7 {
8 var frameDoc = document.getElementById("f").contentDocument;
10 var confusedNode = frameDoc.createTextNode("y");
11 confusedNode.__proto__ = document.createTextNode("x");
12 confusedNode.setUserData("key", "data", null);
13 confusedNode.setUserData("key", "data", null);
14 }
16 </script>
17 </head>
18 <body onload="boom();">
19 <iframe src="data:text/html,1" id="f"></iframe>
20 </body>
21 </html>