blob: 3eac563b8b8c57182a96b7c17769b7cfb9119c9c [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests that the Strong Password and Strong Confirmation Password AutoFill buttons do not render in a disabled field. It can only be tested in the test tool.</p>
<input type="password" placeholder="disabled" disabled data-auto-fill-button-type="StrongPassword">
<input type="password" placeholder="disabled" disabled data-auto-fill-button-type="StrongConfirmationPassword">
<script>
if (window.internals) {
var inputElements = document.getElementsByTagName("input");
for (let inputElement of inputElements)
internals.setShowAutoFillButton(inputElement, inputElement.dataset.autoFillButtonType);
}
</script>
</body>
</html>