2008-10-20 15:28:43 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Subtest for Login Manager notifications (private browsing)</title>
|
|
|
|
<script type="text/javascript" src="pwmgr_common.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2>Subtest 4</h2>
|
|
|
|
<!--
|
|
|
|
Make sure that the user/pass fields have manual filling enabled
|
|
|
|
in private mode.
|
|
|
|
-->
|
|
|
|
<form id="form" action="formsubmit.sjs">
|
|
|
|
<input id="user" name="user" type="text">
|
|
|
|
<input id="pass" name="pass" type="password">
|
|
|
|
<button type='submit'>Submit</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script>
|
2009-05-12 12:09:18 -07:00
|
|
|
function startAutocomplete() {
|
2008-10-20 15:28:43 -07:00
|
|
|
userField.focus();
|
|
|
|
doKey("down");
|
2009-05-12 12:09:18 -07:00
|
|
|
setTimeout(submitForm, 100);
|
|
|
|
}
|
|
|
|
|
|
|
|
function submitForm() {
|
2008-10-20 15:28:43 -07:00
|
|
|
doKey("down");
|
|
|
|
doKey("return");
|
|
|
|
setTimeout(function(){ form.submit(); }, 100);
|
|
|
|
}
|
|
|
|
|
2009-05-12 12:09:18 -07:00
|
|
|
window.onload = startAutocomplete;
|
2008-10-20 15:28:43 -07:00
|
|
|
var form = document.getElementById("form");
|
|
|
|
var userField = document.getElementById("user");
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|