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 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
4 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 onload="boom();">
7 <bindings xmlns="http://www.mozilla.org/xbl">
8 <binding id="lit">
9 <content>
10 <children>
11 <xul:hbox/>
12 </children>
13 </content>
14 </binding>
15 </bindings>
17 <script type="text/javascript">
19 function boom()
20 {
21 var x = document.getElementById("x");
22 var anon = document.getAnonymousNodes(x)[0];
23 document.documentElement.removeChild(x);
24 document.documentElement.appendChild(x);
25 var hbox = document.createElement('hbox');
26 anon.appendChild(hbox);
27 }
29 </script>
31 <hbox id="x" style="-moz-binding: url(#lit)" />
33 </window>