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 <link rel='stylesheet' type='text/css'
5 href='file_CSP.sjs?testid=starExternalStylesLoaded&type=text/css' />
6 </head>
7 <body>
8 <p id="inline-style">This should be green</p>
9 <p id="inline-script">This should be black</p>
10 <style>
11 p#inline-style { color:rgb(0, 128, 0); }
12 </style>
13 <script>
14 // Use inline script to set a style attribute
15 document.getElementById("inline-script").style.color = "rgb(0, 128, 0)";
16 </script>
17 <img src="file_CSP.sjs?testid=starExternalImgLoaded&type=img/png" />
18 </body>
19 </html>