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-stylesheet href="chrome://browser/skin/" type="text/css"?>
2 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
3 <richlistbox id="a" datasources="" template="d"/>
4 <script><![CDATA[
5 function doe() {
6 var node = document.getElementById('a');
7 var b = node.builder;
8 document.removeChild(document.documentElement);
9 b.addResult({}, node);
10 b.removeResult({});
11 b.replaceResult({}, {}, node);
12 b.resultBindingChanged({});
13 try { b.addResult(null, null); } catch(ex) { }
14 try { b.removeResult(null); } catch(ex) { }
15 try { b.replaceResult(null, null, null); } catch(ex) { }
16 try { b.resultBindingChanged(null); } catch(ex) { }
17 try { b.getResultForId("empty"); } catch(ex) { }
18 try { b.getResultForContent(node); } catch(ex) { }
19 try { b.hasGeneratedContent(null, null); } catch(ex) { }
20 }
21 window.addEventListener("load", doe, false);
22 ]]></script>
23 </window>