Issue #2790 - Cleanup: Remove whitespaces

This commit is contained in:
MeladJM 2025-07-28 01:01:27 +08:00 • committed by roytam1
commit 70cbf0dfd3
2 changed files with 1 additions and 5 deletions

View file

@ -2607,7 +2607,7 @@ HTMLInputElement::MozSetFileNameArray(const Sequence<nsString>& aFileNames,
NS_IMETHODIMP NS_IMETHODIMP
HTMLInputElement::MozSetFileNameArray(const char16_t** aFileNames, HTMLInputElement::MozSetFileNameArray(const char16_t** aFileNames,
uint32_t aLength) uint32_t aLength)
{ {
if (!nsContentUtils::IsCallerChrome()) { if (!nsContentUtils::IsCallerChrome()) {
// setting the value of a "FILE" input widget requires chrome privilege // setting the value of a "FILE" input widget requires chrome privilege

View file

@ -235,9 +235,7 @@ FormHandler.prototype = {
* } * }
*/ */
autofillFormFields: function (aAutofillResult) { autofillFormFields: function (aAutofillResult) {
for (let field of aAutofillResult.fields) { for (let field of aAutofillResult.fields) {
// Get the field details, if it was processed by the user interface. // Get the field details, if it was processed by the user interface.
let fieldDetail = this.fieldDetails let fieldDetail = this.fieldDetails
.find(f => f.section == field.section && .find(f => f.section == field.section &&
@ -249,8 +247,6 @@ FormHandler.prototype = {
continue; continue;
} }
fieldDetail.element.value = field.value; fieldDetail.element.value = field.value;
if (typeof fieldDetail.element.setAutofilled === 'function') { if (typeof fieldDetail.element.setAutofilled === 'function') {
fieldDetail.element.setAutofilled(!!field.value); fieldDetail.element.setAutofilled(!!field.value);
} }