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> |
michael@0 | 3 | <!-- |
michael@0 | 4 | This test checks that setting a background on a ::-moz-placeholder works. |
michael@0 | 5 | However, given that it is not possible to do an actualy equality check, we |
michael@0 | 6 | have te check that setting a background doesn't produce the same result |
michael@0 | 7 | as not setting it. |
michael@0 | 8 | --> |
michael@0 | 9 | <style> |
michael@0 | 10 | :-moz-any(input, textarea).color::-moz-placeholder { |
michael@0 | 11 | background-color: blue; |
michael@0 | 12 | } |
michael@0 | 13 | :-moz-any(input, textarea).gradient::-moz-placeholder { |
michael@0 | 14 | background: linear-gradient(to right, blue, white, red); |
michael@0 | 15 | } |
michael@0 | 16 | </style> |
michael@0 | 17 | <body> |
michael@0 | 18 | <input class="color" placeholder='foo'> |
michael@0 | 19 | <textarea class="color" placeholder='foo'></textarea> |
michael@0 | 20 | <input class="gradient" placeholder='foo'> |
michael@0 | 21 | <textarea class="gradient" placeholder='foo'></textarea> |
michael@0 | 22 | </body> |
michael@0 | 23 | </html> |