editor/reftests/388980-1-ref.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

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

mercurial