1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/passwordmgr/test/subtst_notifications_11_popup.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<html> 1.5 +<head> 1.6 + <title>Subtest for Login Manager notifications</title> 1.7 +</head> 1.8 +<body> 1.9 +<h2>Subtest 11</h2> 1.10 +<form id="form" action="formsubmit.sjs"> 1.11 + <input id="user" name="user"> 1.12 + <input id="pass" name="pass" type="password"> 1.13 + <button type='submit'>Submit</button> 1.14 +</form> 1.15 + 1.16 +<script> 1.17 +function submitForm() { 1.18 + // Get the password from the query string (exclude '?'). 1.19 + [username, password] = window.location.search.substring(1).split('|'); 1.20 + userField.value = username; 1.21 + passField.value = password; 1.22 + form.submit(); 1.23 + window.opener.formSubmitted(); 1.24 +} 1.25 + 1.26 +window.onload = submitForm; 1.27 +var form = document.getElementById("form"); 1.28 +var userField = document.getElementById("user"); 1.29 +var passField = document.getElementById("pass"); 1.30 + 1.31 +</script> 1.32 +</body> 1.33 +</html>