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 class="reftest-wait">
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4 </head>
5 <body onload="start()">
6 <textarea onfocus="done()" style="-moz-appearance: none">س</textarea>
7 <script>
8 var textarea = document.querySelector("textarea");
9 function start() {
10 textarea.focus();
11 }
12 function done() {
13 textarea.selectionStart = textarea.selectionEnd = 0;
14 document.documentElement.removeAttribute("class");
15 }
16 </script>
17 </body>
18 </html>