Don't call form.submit(), it breaks sites (Google, AWS, etc) (#52)
This commit is contained in:
@@ -144,10 +144,7 @@
|
|||||||
submit.focus();
|
submit.focus();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// There is no submit button. Try to submit the form itself.
|
// There is no submit button.
|
||||||
if (request.autoSubmit && loginForm) {
|
|
||||||
loginForm.submit();
|
|
||||||
}
|
|
||||||
// We need to keep focus somewhere within the form, so that Enter hopefully submits the form.
|
// We need to keep focus somewhere within the form, so that Enter hopefully submits the form.
|
||||||
var password = find(PASSWORD_FIELDS, loginForm);
|
var password = find(PASSWORD_FIELDS, loginForm);
|
||||||
if (password) {
|
if (password) {
|
||||||
|
Reference in New Issue
Block a user