password_fill: dispatch "input" event to make websites happy
This commit is contained in:
parent
9447182809
commit
f83bf7c66e
|
|
@ -361,12 +361,14 @@ cat <<EOF
|
|||
input.focus();
|
||||
input.value = "$(javascript_escape "${username}")";
|
||||
input.dispatchEvent(new Event('change'));
|
||||
input.dispatchEvent(new Event('input'));
|
||||
input.blur();
|
||||
}
|
||||
if (input.type == "password") {
|
||||
input.focus();
|
||||
input.value = "$(javascript_escape "${password}")";
|
||||
input.dispatchEvent(new Event('change'));
|
||||
input.dispatchEvent(new Event('input'));
|
||||
input.blur();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue