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 | <html class="reftest-wait"> |
michael@0 | 3 | <title>Test transition from component-alpha layer to single-alpha layer</title> |
michael@0 | 4 | <script type="text/javascript"> |
michael@0 | 5 | document.addEventListener("MozReftestInvalidate", function scrollOnePixelDown () { |
michael@0 | 6 | var scrollbox = document.getElementById("scrollbox"); |
michael@0 | 7 | window.addEventListener("MozAfterPaint", function scrollDownAllTheWay() { |
michael@0 | 8 | window.removeEventListener("MozAfterPaint", arguments.callee, false); |
michael@0 | 9 | scrollbox.scrollTop = 1000; |
michael@0 | 10 | document.documentElement.className = ""; |
michael@0 | 11 | }, false); |
michael@0 | 12 | scrollbox.scrollTop = 1; // activate scroll layer |
michael@0 | 13 | }, false); |
michael@0 | 14 | </script> |
michael@0 | 15 | <style> |
michael@0 | 16 | #scrollbox { |
michael@0 | 17 | margin: 20px; |
michael@0 | 18 | width: 300px; |
michael@0 | 19 | height: 400px; |
michael@0 | 20 | overflow-y: hidden; |
michael@0 | 21 | background: -moz-linear-gradient(#FFF, #FFF); |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | #inner { |
michael@0 | 25 | background-color: #000; |
michael@0 | 26 | margin-top: 10px; |
michael@0 | 27 | height: 5px; |
michael@0 | 28 | line-height: 5px; |
michael@0 | 29 | padding-bottom: 400px; |
michael@0 | 30 | } |
michael@0 | 31 | </style> |
michael@0 | 32 | |
michael@0 | 33 | <div id="scrollbox"> |
michael@0 | 34 | <div id="inner"> |
michael@0 | 35 | Text |
michael@0 | 36 | </div> |
michael@0 | 37 | </div> |