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>
2 <body>
3 <form name="frmlogin">
4 <input type="text" name="username"
5 onfocus="frmlogin.username.select();"
6 onblur="frmlogin.password.focus();">
7 <input type="password" name="password"
8 onfocus="frmlogin.password.select();">
9 </form>
10 <script language="JavaScript">
11 document.frmlogin.username.focus();
12 </script>
13 </body>
14 </html>