blob: 764ede80134e63229a105859a1c2e3d1eeb2994d [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests that the Strong Password and Strong Confirmation Password AutoFill buttons do not render read only field. It can only be tested in the test tool.</p>
<input type="password" placeholder="read only" readonly data-auto-fill-button-type="StrongPassword">
<input type="password" placeholder="read only" readonly 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>