Open Bug 1755690 Opened 1 year ago Updated 1 year ago

[UK][] The "Address Line 1 (or Company Name)" field is incorrectly autofilled


(Toolkit :: Form Autofill, defect, P3)




Tracking Status
firefox97 --- disabled
firefox98 --- disabled
firefox99 --- disabled


(Reporter: simona.marcu, Unassigned)


(Blocks 2 open bugs, )



(1 file)

Affected Versions:

Nightly 99.a1, Beta 98 and Release 97

Tested on:

MacOS 11
Windows 10

Preconditions: GB
extensions.formautofill.addresses.enabled - true
extensions.formautofill.addresses.supported to "detect"
extensions.formautofill.addresses.supportedCountries US,CA,GB

download latest Firefox Nightly with region locale
have a complete address already saved in about:preferences#privacy

Steps to reproduce:

  1. Reach the address form on
  2. Using the autofill feature, select 1 saved address entry.
  3. Observe the "Address Line 1 (or Company Name)" field.

Expected Results:

The "Address Line 1 (or Company Name)" field should be correctly auto-filled and contain both the Street name and the Organization.

Actual Results:

The "Address Line 1 (or Company Name)" field contains only the Organization name info.


If I delete the Organization name in the Saved Addresses modal from about:preferences#privacy the field is not auto-filled but remains empty.
Reproducible on Chrome: Yes.

Resetting the Priority field as was accidentally set.

Priority: P3 → --
Assignee: nobody → tgiles
Priority: -- → P2

Okay, so this is a bit of an odd one. The reason the "Address Line 1 (or Company Name)" gets filled with the "Organization" data is due to the ordering of our heuristics. Since the autocomplete attribute doesn't match any valid attribute for autocomplete, we fall back to our heuristics to make an educated guess. Well, we end up checking for "organization" before we check for "address-line1". Since the label text has "Company Name", our heuristics match this field as an "organization" field and not an "address-line1" field...though to be frank, I think all browsers will have difficulty with this form.

The "address-line1" and "organization" are not synonymous attribute for autofill and thus can't be used interchangeably. Address-line1 is used as part of a street address, while organization is used for "company name corresponding to the person, address, or contact information in the other fields associated with this [form]".

I believe this will be a WONTFIX as we can't predict whether or not the user would want address-line1 information filled in this field or organization data filled in this field.

Assignee: tgiles → nobody
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.