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 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <title>Reftest for bug 388980</title></html> |
michael@0 | 4 | <script type="text/javascript"> |
michael@0 | 5 | |
michael@0 | 6 | var text = '<html><head></head><body style="font-size:16px;">' |
michael@0 | 7 | + '<p><span style="background-color:red;">This paragraph should be red</span></p>' |
michael@0 | 8 | + '<p><span style="background-color:blue;">This paragraph should be blue</span></p>' |
michael@0 | 9 | + '<p>This paragraph should not be colored</p>' |
michael@0 | 10 | + '</body></html>'; |
michael@0 | 11 | |
michael@0 | 12 | function initIFrame() { |
michael@0 | 13 | var doc = document.getElementById('theIFrame').contentDocument; |
michael@0 | 14 | doc.designMode = 'on'; |
michael@0 | 15 | doc.open('text/html'); |
michael@0 | 16 | doc.write(text); |
michael@0 | 17 | doc.close(); |
michael@0 | 18 | } |
michael@0 | 19 | </script> |
michael@0 | 20 | </head> |
michael@0 | 21 | <body onload="initIFrame()" > |
michael@0 | 22 | <iframe id="theIFrame"> |
michael@0 | 23 | </iframe> |
michael@0 | 24 | </body> |
michael@0 | 25 | </html> |