Remove debugger permissions (#226)

This commit is contained in:
Maxim Baz
2020-08-26 16:53:58 +02:00
committed by GitHub
parent d73f8e55ae
commit c9afa483cb
4 changed files with 15 additions and 50 deletions

View File

@@ -220,9 +220,7 @@
* @return object result of focusing or submitting a form
*/
function focusOrSubmit(request) {
var result = {
needPressEnter: false,
};
var result = {};
// get the login form
let loginForm = undefined;
@@ -258,11 +256,6 @@
submit.focus();
}
} else {
// There is no submit button.
if (request.autoSubmit) {
// signal background script that we want it to press Enter for us
result.needPressEnter = true;
}
// We need to keep focus somewhere within the form, so that Enter hopefully submits the form.
for (let selectors of [OPENID_FIELDS, PASSWORD_FIELDS, USERNAME_FIELDS]) {
let field = find(selectors, loginForm);