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>
5 <style id="firstLetterSheet">
6 .fl:first-letter { }
7 </style>
9 <style id="emptySheet">
10 </style>
12 <script>
14 function boom()
15 {
16 document.getElementById("firstLetterSheet").textContent = "";
17 document.getElementById("emptySheet").textContent = ".aft:after { content: counter(chicken); }";
18 }
20 </script>
22 </head>
24 <body onload="boom()">
26 <div class="fl">Foo <span class="aft">Bar</span></div>
28 <p class="aft">Baz</p>
30 </body>
31 </html>