|
1 <html> |
|
2 <head> |
|
3 <title>Subtest for Login Manager notifications (private browsing)</title> |
|
4 <script type="text/javascript" src="pwmgr_common.js"></script> |
|
5 </head> |
|
6 <body> |
|
7 <h2>Subtest 4</h2> |
|
8 <!-- |
|
9 Make sure that the user/pass fields have manual filling enabled |
|
10 in private mode. |
|
11 --> |
|
12 <form id="form" action="formsubmit.sjs"> |
|
13 <input id="user" name="user" type="text"> |
|
14 <input id="pass" name="pass" type="password"> |
|
15 <button type='submit'>Submit</button> |
|
16 </form> |
|
17 |
|
18 <script> |
|
19 function startAutocomplete() { |
|
20 userField.focus(); |
|
21 doKey("down"); |
|
22 setTimeout(submitForm, 100); |
|
23 } |
|
24 |
|
25 function submitForm() { |
|
26 doKey("down"); |
|
27 doKey("return"); |
|
28 setTimeout(function(){ form.submit(); }, 100); |
|
29 } |
|
30 |
|
31 window.onload = startAutocomplete; |
|
32 var form = document.getElementById("form"); |
|
33 var userField = document.getElementById("user"); |
|
34 |
|
35 </script> |
|
36 </body> |
|
37 </html> |