From a4bee5cac7cef4427fcedaa43a6ba289d244ac05 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sat, 30 Mar 2019 23:30:05 +0100 Subject: [PATCH] Don't call form.submit(), it breaks sites (Google, AWS, etc) (#52) --- src/inject.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/inject.js b/src/inject.js index 462bd9c..5fe7c66 100644 --- a/src/inject.js +++ b/src/inject.js @@ -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) {