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 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 function doe(aEl) {
6 aEl.style.display = '';
7 var doc = aEl.contentDocument;
8 doc.designMode = 'on';
10 try {
11 doc.execCommand("insertHTML",false,'some text');
12 } catch(e) {
13 document.getElementById('result').innerHTML = e;
14 }
15 }
16 </script>
18 <iframe onload="doe(this)" style="display:none"></iframe><br>
19 <pre id="result" style="background-color: red; width: 300px; white-space: -moz-pre-wrap;"></pre>
20 </body>
21 </html>