gecko/toolkit/components/passwordmgr/test/subtst_privbrowsing_4.html

38 lines
849 B
HTML

<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>
function startAutocomplete() {
userField.focus();
doKey("down");
setTimeout(submitForm, 100);
}
function submitForm() {
doKey("down");
doKey("return");
setTimeout(function(){ form.submit(); }, 100);
}
window.onload = startAutocomplete;
var form = document.getElementById("form");
var userField = document.getElementById("user");
</script>
</body>
</html>