Don't call form.submit(), it breaks sites (Google, AWS, etc) (#52)

This commit is contained in:
Maxim Baz
2019-03-30 23:30:05 +01:00
committed by GitHub
parent aa335ae141
commit a4bee5cac7

View File

@@ -144,10 +144,7 @@
submit.focus();
}
} else {
// There is no submit button. Try to submit the form itself.
if (request.autoSubmit && loginForm) {
loginForm.submit();
}
// There is no submit button.
// We need to keep focus somewhere within the form, so that Enter hopefully submits the form.
var password = find(PASSWORD_FIELDS, loginForm);
if (password) {