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">
2 <head>
5 <bindings xmlns="http://www.mozilla.org/xbl">
6 <binding id="editable"><content><div contenteditable="true" xmlns="http://www.w3.org/1999/xhtml"></div></content></binding>
7 </bindings>
9 <script type="text/javascript">
10 <![CDATA[
12 function boom()
13 {
14 while (document.documentElement.firstChild) document.documentElement.removeChild(document.documentElement.firstChild);
16 document.addEventListener("DOMSubtreeModified", function(){}, false);
17 document.addEventListener("DOMNodeInsertedIntoDocument", function(){}, false);
18 document.documentElement.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml", "body"));
19 document.body.style.MozBinding = 'url(#editable)';
20 }
22 ]]>
23 </script></head>
25 <body onload="boom();"></body>
26 </html>