Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 <!DOCTYPE HTML>
2 <title>Test for privacy restrictions on :visited (Bug 147777)</title>
3 <style>
5 a { text-decoration: none }
6 :link ~ :link { color: olive; }
7 :visited ~ :link { color: red; }
8 :link ~ :visited { color: fuchsia; }
9 :visited ~ :visited { color: red; }
11 </style>
12 <div><a href="unvisited-page.html"></a><a href="unvisited-page.html">unvisited + unvisited</a></div>
13 <div><a href="unvisited-page.html"></a><a href="visited-page.html">unvisited + visited</a></div>
14 <div><a href="visited-page.html"></a><a href="unvisited-page.html">visited + unvisited</a></div>
15 <div><a href="visited-page.html"></a><a href="visited-page.html">visited + visited</a></div>