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 | <!doctype html><style> |
michael@0 | 2 | div { float: left } |
michael@0 | 3 | /* Pseudo elements can appear only at the end of the selector. */ |
michael@0 | 4 | .good { color: red } |
michael@0 | 5 | .bad { color: green } |
michael@0 | 6 | #good1::first-letter { color: green } |
michael@0 | 7 | #good2::first-letter, #good3 { color: green } |
michael@0 | 8 | #good4, #good5::first-letter { color: green } |
michael@0 | 9 | div > #good6::first-letter, #good7 { color:green } |
michael@0 | 10 | div #good7 > ::first-letter, #good8 { color:green } |
michael@0 | 11 | |
michael@0 | 12 | #bad1::first-letter *, #bad2 { color: red } |
michael@0 | 13 | #bad4, #bad3::first-letter * { color: red } |
michael@0 | 14 | div::first-line #bad5, #bad6 { color: red } |
michael@0 | 15 | #bad7, div::first-line #bad8 { color: red } |
michael@0 | 16 | #bad9, div ::first-line>#bad10 { color:red } |
michael@0 | 17 | </style><div |
michael@0 | 18 | ><div class="good" id="good1">T</div |
michael@0 | 19 | ><div class="good" id="good2">h</div |
michael@0 | 20 | ><div class="good" id="good3">e</div |
michael@0 | 21 | ><div class="good" id="good4">r</div |
michael@0 | 22 | ><div class="good" id="good5">e</div |
michael@0 | 23 | ><div class="good" id="good6">s</div |
michael@0 | 24 | ><div class="good" id="good7">h</div |
michael@0 | 25 | ><div class="good" id="good8">o</div |
michael@0 | 26 | ><div class="bad" id="bad1" >u</div |
michael@0 | 27 | ><div class="bad" id="bad2" >l</div |
michael@0 | 28 | ><div class="bad" id="bad3" >d</div |
michael@0 | 29 | ><div class="bad" id="bad4" >b</div |
michael@0 | 30 | ><div class="bad" id="bad5" >e</div |
michael@0 | 31 | ><div class="bad" id="bad6" >n</div |
michael@0 | 32 | ><div class="bad" id="bad7" >o</div |
michael@0 | 33 | ><div class="bad" id="bad8" >r</div |
michael@0 | 34 | ><div class="bad" id="bad9" >e</div |
michael@0 | 35 | ><div class="bad" id="bad10">d</div |
michael@0 | 36 | ></div> |