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" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
3 <head>
5 <bindings xmlns="http://www.mozilla.org/xbl">
6 <binding id="lc">
7 <content>
8 <xul:listcell> t <children/></xul:listcell>
9 </content>
10 </binding>
11 </bindings>
13 <script>
14 function boom()
15 {
16 var hbox = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
17 document.getElementById("vv").appendChild(hbox);
18 }
19 </script>
21 </head>
23 <body onload="boom();">
25 <div style="-moz-binding: url(#lc);" id="vv"></div>
27 </body>
29 </html>