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 reftest-zoom="1.5" class="reftest-wait">
3 <body style="margin:0;">
4 <div id="d" style="position:absolute; top:15px; left:15px; width:100px; height:100px;"></div>
5 <script>
6 function doTest() {
7 document.getElementById("d").style.background = "yellow";
8 document.documentElement.removeAttribute('class');
9 }
10 document.addEventListener("MozReftestInvalidate", doTest, false);
11 </script>
12 </body>
13 </html>