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);
}