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><html><head>
2 </head>
3 <body>
4 noteditable<span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span><br />
5 <script>
6 // Position the caret after "u"
7 var sel = window.getSelection();
8 sel.removeAllRanges();
9 var range = document.createRange();
10 var x = document.getElementById('x');
11 var t = x.firstChild;
12 range.setStart(t, 11);
13 range.setEnd(t, 11);
14 sel.addRange(range);
15 x.focus();
16 </script>
17 </body>
18 </html>