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 | <div style="background: -moz-linear-gradient(black, black 50px, white 50px, white 100px, black 100px, black 150px, white 150px, white 200px); |
michael@0 | 2 | background-size: 100px 200px; background-repeat: repeat-x; |
michael@0 | 3 | width: 300px; height: 800px; |
michael@0 | 4 | margin-bottom: -600px;"></div> |
michael@0 | 5 | <!-- making the gradient actually be 300px high isn't reliable since |
michael@0 | 6 | the stop positions cannot be exactly represented and rounding errors |
michael@0 | 7 | creep in. So just let the gradient be 200px high and pad out to match |
michael@0 | 8 | the reference. --> |
michael@0 | 9 | <div style="background: black; width: 300px; height: 50px;"></div> |
michael@0 | 10 | <div style="background: white; width: 300px; height: 50px;"></div> |