Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/licenses/publicdomain/ |
michael@0 | 4 | |
michael@0 | 5 | Test with background-size. |
michael@0 | 6 | --> |
michael@0 | 7 | <html> |
michael@0 | 8 | <body style="filter:url(#thresholdAt128);"> |
michael@0 | 9 | <div style="width:80px; height:80px; border:1px solid black; |
michael@0 | 10 | background:-moz-element(#d) no-repeat; |
michael@0 | 11 | background-size:100%"></div> |
michael@0 | 12 | <div style="overflow:hidden; height:0;"> |
michael@0 | 13 | <div id="d" style="border:10px solid red; width:20px; height:20px; |
michael@0 | 14 | background:yellow;"></div> |
michael@0 | 15 | </div> |
michael@0 | 16 | <svg> |
michael@0 | 17 | <filter id="thresholdAt128" color-interpolation-filters="sRGB"> |
michael@0 | 18 | <feColorMatrix type="matrix" |
michael@0 | 19 | values="255 0 0 0 -128 |
michael@0 | 20 | 0 255 0 0 -128 |
michael@0 | 21 | 0 0 255 0 -128 |
michael@0 | 22 | 0 0 0 255 -128"/> |
michael@0 | 23 | |
michael@0 | 24 | </filter> |
michael@0 | 25 | </svg> |
michael@0 | 26 | </body> |
michael@0 | 27 | </html> |