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 function boom1()
6 {
7 var c = document.getElementById("c");
8 c.style.MozBinding = "url('#foo')";
10 setTimeout(boom2, 30);
11 }
13 function boom2()
14 {
15 var v = document.getElementById("v");
16 v.parentNode.removeChild(v);
17 document.documentElement.removeAttribute("class");
18 }
20 </script>
22 <bindings xmlns="http://www.mozilla.org/xbl"><binding id="foo">
23 <content>x x x x x <children/></content>
24 </binding></bindings>
26 </head>
28 <body style="font-family: monospace; width: 10ch;" onload="setTimeout(boom1, 30);">
30 <div style="background: lightblue; border: 1px solid blue; margin-bottom: 1em;">
31 <span id="c">y y<span id="v">Z<div/></span></span>
32 </div>
34 <div style="background: lightgreen; border: 1px solid green; height: 2000px;">s</div>
36 </body>
37 </html>