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>fixed</title> |
michael@0 | 7 | <style type="text/css" media="screen"> |
michael@0 | 8 | body { margin: 1px; padding: 5px; } |
michael@0 | 9 | div.fixed { position: fixed; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; overflow: hidden; } |
michael@0 | 10 | #fixed-1 { top: 0; left: 0; } |
michael@0 | 11 | #fixed-2 { top: 20px; left: 20px; } |
michael@0 | 12 | #forceScroll { width: 5000px; height: 5000px; } |
michael@0 | 13 | #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } |
michael@0 | 14 | </style> |
michael@0 | 15 | <script type="text/javascript" src="../../../dist/jquery.js"></script> |
michael@0 | 16 | <script type="text/javascript" charset="utf-8"> |
michael@0 | 17 | $(function() { |
michael@0 | 18 | window.scrollTo(1000,1000); |
michael@0 | 19 | $('.fixed').click(function() { |
michael@0 | 20 | $('#marker').css( $(this).offset() ); |
michael@0 | 21 | return false; |
michael@0 | 22 | }); |
michael@0 | 23 | }); |
michael@0 | 24 | </script> |
michael@0 | 25 | </head> |
michael@0 | 26 | <body> |
michael@0 | 27 | <div id="fixed-1" class="fixed"></div> |
michael@0 | 28 | <div id="fixed-2" class="fixed"></div> |
michael@0 | 29 | <div id="forceScroll"></div> |
michael@0 | 30 | <div id="marker"></div> |
michael@0 | 31 | <p class="instructions">Click the white box to move the marker to it.</p> |
michael@0 | 32 | </body> |
michael@0 | 33 | </html> |