Closed Bug 1825777 Opened 2 years ago Closed 1 year ago

[IT][philips.it] Autofill is triggered from an address number field

Categories

(Toolkit :: Form Autofill, defect, P2)

Firefox 113
Desktop
All
defect

Tracking

()

VERIFIED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox111 --- unaffected
firefox112 --- unaffected
firefox113 --- disabled
firefox114 --- disabled
firefox115 --- disabled
firefox116 --- verified

People

(Reporter: hyacoub, Assigned: dimi)

References

(Blocks 1 open bug, )

Details

(Keywords: regression, Whiteboard: [fxcm-cc-new-geo])

Attachments

(2 files, 1 obsolete file)

Attached video 2023-03-31_11h52_33.mp4

Found in

  • 113.0a1

Affected versions

  • 113.0a1

Tested platforms

  • Affected platforms: Windows 11 and macOS 11

Preconditions

  • browser.search.region = IT
  • extensions.formautofill.creditCards.supportedCountries = IT
  • Have at least one CC already saved

Steps to reproduce

  1. Reach the payment form on https://www.philips.it
  2. From the delivery address click on "Numero Civico" field

Expected result

  • Autofill shouldn't be triggered from an address number field

Actual result

  • Autofill is triggered from an address number field

Regression range

Additional notes

  • Not reproducible on Chrome.
No longer regressed by: 1821075
Priority: -- → P2
Whiteboard: [fxcm-cc-new-geo]

This seems to be happening because we're only gathering credit card fields as a possibility for field names here

Then, when fathom can't recognize the field, we try to match against another set of autofill rules. Specifically, we're matching against this element string: "Numero civico*".

Interestingly, if we add "IT" as a supported region to extensions.formautofill.addresses.supportedCountries then the form autofill address fields are included. And somewhere down the line form autofill determines the house number field is NOT a CC number field and the dropdown doesn't show as a result.

I haven't quite determined where this is yet. Dimi, could you point to where this branch is happening?

Flags: needinfo?(dlee)
Assignee: nobody → mtigley
Status: NEW → ASSIGNED

After discussing with Dimi, we can just remove this regular expression:. This is fine since this was added before we had Fathom to identify CC name and CC number fields and is a more relaxed heuristic that isn't necessary anymore.

Flags: needinfo?(dlee)
Assignee: mtigley → dlee

At present, we don't execute address field identification for regions that don't support
address autofill. However, this impacts the accuracy of identifying credit card fields too.
This is due to the fact that if a field appears to be both an address and a credit card field,
we will consistently regard it as a credit card field if we don't execute address field heuristics.

This patch guarantees that we run both address and credit card heuristics when form autofill
is enabled for a region. We will still not autofill or capture address fields for regions
that do not support address autofill.

Depends on D179688

Attachment #9334542 - Attachment is obsolete: true
Attachment #9336996 - Attachment description: Bug 1825777 - Improve formautofill heuristics by always identifying address fields r=#credential-management-reviewers,mtigley → Bug 1825777 - Improve formautofill heuristics by always identifying address fields r=#credential-management-reviewers
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bf687698c642 Improve formautofill heuristics by always identifying address fields r=mtigley,credential-management-reviewers DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Flags: qe-verify+

The patch landed in nightly and beta is affected.
:dimi, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox115 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(dlee)

Verified - Fixed in latest Nightly 116.0a1 (2023-06-15). The autofill dropdown is no longer triggered for Numero Civico field.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 1838793
Flags: needinfo?(dlee)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: