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 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <script>
5 var ff;
6 var jj;
8 function boom()
9 {
10 ff = document.createElement("font");
11 ff.setAttribute("size", "-2");
12 ff.appendChild(document.createTextNode("G"));
14 jj = document.getElementById("jj");
16 jj.appendChild(ff);
17 setTimeout(boom2, 30);
18 }
20 function boom2()
21 {
22 jj.removeChild(ff);
24 document.documentElement.removeAttribute("class");
25 }
27 </script>
28 </head>
30 <body onload="boom();" dir="rtl"><div id="jj">h </div></body>
32 </html>