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>
3 <script>
4 <![CDATA[
6 function boom()
7 {
8 while (document.documentElement.firstChild) {
9 document.documentElement.removeChild(document.documentElement.firstChild);
10 }
12 var td = document.createElementNS("http://www.w3.org/1999/xhtml", "td");
13 td.setAttributeNS(null, "contenteditable", "true");
14 (document.documentElement).appendChild(td);
15 var head = document.createElementNS("http://www.w3.org/1999/xhtml", "head");
16 (document.documentElement).appendChild(head);
18 head.appendChild(td);
19 }
21 window.addEventListener("load", boom, false);
23 ]]>
24 </script>
25 </head>
27 <body></body>
28 </html>