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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
michael@0 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
michael@0 | 3 | <html> |
michael@0 | 4 | <head> |
michael@0 | 5 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
michael@0 | 6 | <title>table</title> |
michael@0 | 7 | <style type="text/css" media="screen"> |
michael@0 | 8 | body { margin: 1px; padding: 5px; } |
michael@0 | 9 | table { border: 2px solid #000; } |
michael@0 | 10 | th, td { border: 1px solid #000; width: 100px; height: 100px; } |
michael@0 | 11 | #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } |
michael@0 | 12 | </style> |
michael@0 | 13 | <script type="text/javascript" src="../../../dist/jquery.js"></script> |
michael@0 | 14 | <script type="text/javascript" charset="utf-8"> |
michael@0 | 15 | $(function() { |
michael@0 | 16 | $('table, th, td').click(function() { |
michael@0 | 17 | $('#marker').css( $(this).offset() ); |
michael@0 | 18 | return false; |
michael@0 | 19 | }); |
michael@0 | 20 | }); |
michael@0 | 21 | </script> |
michael@0 | 22 | </head> |
michael@0 | 23 | <body> |
michael@0 | 24 | <table id="table-1"> |
michael@0 | 25 | <thead> |
michael@0 | 26 | <tr valign="top"> |
michael@0 | 27 | <th id="th-1">th-1</th> |
michael@0 | 28 | <th id="th-2">th-2</th> |
michael@0 | 29 | <th id="th-3">th-3</th> |
michael@0 | 30 | </tr> |
michael@0 | 31 | </thead> |
michael@0 | 32 | <tbody> |
michael@0 | 33 | <tr valign="top"> |
michael@0 | 34 | <td id="td-1">td-1</td> |
michael@0 | 35 | <td id="td-2">td-2</td> |
michael@0 | 36 | <td id="td-3">td-3</td> |
michael@0 | 37 | </tr> |
michael@0 | 38 | </tbody> |
michael@0 | 39 | </table> |
michael@0 | 40 | <div id="marker"></div> |
michael@0 | 41 | <p class="instructions">Click the white box to move the marker to it.</p> |
michael@0 | 42 | </body> |
michael@0 | 43 | </html> |