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 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>Test for privacy restrictions on :visited (Bug 147777)</title>
5 <style>
7 a { text-decoration: none }
8 :link > :link { color: olive; }
9 :visited > :link { color: red; }
10 :link > :visited { color: fuchsia; }
11 :visited > :visited { color: red; }
13 </style>
14 </head>
15 <body>
16 <a href="unvisited-page.html"><a href="unvisited-page.html">unvisited / unvisited</a></a>
17 <a href="unvisited-page.html"><a href="visited-page.html">unvisited / visited</a></a>
18 <a href="visited-page.html"><a href="unvisited-page.html">visited / unvisited</a></a>
19 <a href="visited-page.html"><a href="visited-page.html">visited / visited</a></a>
20 </body>
21 </html>