Closed Bug 1849131 Opened 1 year ago Closed 3 months ago

[CA][leons.ca] The Provice field (dropdown) is not longer autofilled if the same address is selected twice

Categories

(Toolkit :: Form Autofill, task)

Firefox 118
Desktop
All
task

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox118 --- wontfix
firefox129 --- verified

People

(Reporter: ailea, Assigned: enndeakin)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [fxcm-addr-compatibility])

Attachments

(3 files)

Attached video 2023-08-17_14h26_24.mp4

Found in

  • 118.0a1

Affected versions

  • 118.0a1

Tested platforms

  • Affected platforms: Windows 10

Preconditions

  • browser.search.region = CA
  • Have at least one Address already saved

Steps to reproduce

  1. Reach the Address form on https://www.leons.ca
  2. Click on any Address field and select an Address entry from the dropdown
  3. Click on any field and choose the Clear Form option
  4. Click on any Address field and select the same address as in step 2

Expected result

  • The Province field should be autofilled accordingly.

Actual result

  • The Province field is autofilled correctly only for the first time an address is selected. If the user select the same address to autofill the fields twice or more, the Province field is no longer autofilled.

Regression range

  • N/A

Aditional Notes

There are a number of duplicated fields that are made 'invisible' by making them very small and pushing them into another area of the page. These duplicated fields cause the section classification to think that there are multiple sections and breaks up the form fields into different sections. The province, postal code and phone number are the only fields without duplicates so go into a separate section which would get autofilled separately.

The 'hidden' fields do have aria-hidden="true" which we could use as an alternate form of visibility check.

Whiteboard: fxcm-addr-compatibility
Whiteboard: fxcm-addr-compatibility → [fxcm-addr-compatibility]

For now, this is only checked when looking up select option elements to reduce compatibility issues

Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Pushed by neil@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/25cf9cb2b9a2
use aria-hidden attribute as an indicator of visibility when comparing select options, r=credential-management-reviewers,dimi
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Attached video 2024-07-10_16h36_32.mp4

Hi Neil, in my attempt to verify this fix, I noticed that the bug is indeed fixed (so I will mark it accordingly), the province is now autofilled if I autofill the form with the same address multiple times, but the Province field is now reset to Alberta upon clearing the form, not to the Province value. Just let me know if I should file a new bug for this, or maybe it will be fixed through bug 1904593.
Thanks!

Flags: needinfo?(enndeakin)
Status: RESOLVED → VERIFIED
Flags: qe-verify+

There is no default row assigned by the province dropdown and the first item labelled 'Province' is disabled so we can't select it, so we select the first available item 'Alberta'. Chrome does this same thing when clearing the form so I think there doesn't need to be a bug this.

Flags: needinfo?(enndeakin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: