blob: 2380844ea07e2514e836ee096142bdb6d857b302 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<input type=password>
<script>
description("Verify that removing a password input from DOM tree disables secure input state.");
var passwordInput = document.getElementsByTagName("input")[0];
debug("A password input is focused:");
passwordInput.focus();
shouldBe("testRunner.secureEventInputIsEnabled", "true");
debug("\nAfter deleting the input:");
document.body.removeChild(passwordInput);
shouldBe("testRunner.secureEventInputIsEnabled", "false");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>