From 70cbf0dfd3e2997d7a3baee14f54e77886d17c74 Mon Sep 17 00:00:00 2001 From: MeladJM Date: Mon, 28 Jul 2025 01:01:27 +0800 Subject: [PATCH] Issue #2790 - Cleanup: Remove whitespaces --- dom/html/HTMLInputElement.cpp | 2 +- toolkit/components/formautofill/FormAutofillContentService.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index 120e816eed..1a3b0a99ef 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -2607,7 +2607,7 @@ HTMLInputElement::MozSetFileNameArray(const Sequence& aFileNames, NS_IMETHODIMP HTMLInputElement::MozSetFileNameArray(const char16_t** aFileNames, - uint32_t aLength) + uint32_t aLength) { if (!nsContentUtils::IsCallerChrome()) { // setting the value of a "FILE" input widget requires chrome privilege diff --git a/toolkit/components/formautofill/FormAutofillContentService.js b/toolkit/components/formautofill/FormAutofillContentService.js index cd9850804f..b459736d3b 100644 --- a/toolkit/components/formautofill/FormAutofillContentService.js +++ b/toolkit/components/formautofill/FormAutofillContentService.js @@ -235,9 +235,7 @@ FormHandler.prototype = { * } */ autofillFormFields: function (aAutofillResult) { - for (let field of aAutofillResult.fields) { - // Get the field details, if it was processed by the user interface. let fieldDetail = this.fieldDetails .find(f => f.section == field.section && @@ -249,8 +247,6 @@ FormHandler.prototype = { continue; } fieldDetail.element.value = field.value; - - if (typeof fieldDetail.element.setAutofilled === 'function') { fieldDetail.element.setAutofilled(!!field.value); }