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 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
4 <bindings xmlns="http://www.mozilla.org/xbl">
5 <binding id="empty"><content></content></binding>
6 </bindings>
8 <script type="text/javascript">
10 function boom()
11 {
12 var menupopup = document.getElementById("menupopup");
13 var x = SpecialPowers.wrap(document).getAnonymousNodes(menupopup)[0];
14 menupopup.style.MozBinding = "url('#empty')";
15 for (var ppp in x) {
16 }
17 }
19 </script>
21 <menupopup id="menupopup"/>
23 </window>