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> |
michael@0 | 2 | <style> |
michael@0 | 3 | #d { overflow:scroll; width:200px; height:200px; background:yellow; } |
michael@0 | 4 | #d2 { right:0; width:100px; height:100px; background:purple; } |
michael@0 | 5 | </style> |
michael@0 | 6 | <fieldset id="d"> |
michael@0 | 7 | <div id="d2"></div> |
michael@0 | 8 | </fieldset> |
michael@0 | 9 | <script> |
michael@0 | 10 | d.getBoundingClientRect(); |
michael@0 | 11 | d.style.transform = "translateX(100px)"; |
michael@0 | 12 | d.getBoundingClientRect(); |
michael@0 | 13 | d2.style.position = "absolute"; |
michael@0 | 14 | </script> |