Closed Bug 1951890 Opened 9 months ago Closed 8 months ago

[CA][saje.ca] The 'Save Address' doorhanger does not appear after the form is submitted

Categories

(Toolkit :: Form Autofill, defect, P2)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox-esr128 --- unaffected
firefox136 --- unaffected
firefox137 --- unaffected
firefox138 --- verified

People

(Reporter: ailea, Unassigned)

References

(Regression, )

Details

(Keywords: regression, Whiteboard: [fxcm-addr-compatibility] )

Attachments

(1 file)

Attached image inspect-www.saje.ca.png

Found in

  • 138.0a1

Affected versions

  • 138.0a1

Tested platform

  • Windows 10

Preconditions

  • Have set in about:config:
  • browser.search.region - CA

Steps to reproduce

  1. Go to https://saje.ca and reach the shipping address form.
  2. Fill in manually new Address info and submit the form.

Expected result

  • The "Save Address" doorhanger should appear after the form is submitted.

Actual result

  • The "Save Address" doorhanger does not appear after the form is submitted.

Regression range

Additional notes

  • The address capture doorhanger IS displayed with the extensions.formautofill.addresses.capture.requiredFields set to empty.
  • The address capture doorhanger IS displayed in Nightly 137 by default, without set the extensions.formautofill.addresses.capture.requiredFields to empty.
  • By setting the following preferences to false, will still NOT trigger the capture doorhanger:
    extensions.formautofill.heuristics.detectDynamicFormChanges
    extensions.formautofill.heuristics.fillOnDynamicFormChanges
  • Downloaded page.

From my understanding it is working properly in 137, however the regression range is from 137. Alin, are you confident in the range? If so I dont see anything obvious in that range.

Flags: needinfo?(ailea)

Hi, I will try to get a new regression range as soon as possible. In the meantime, Janika is working on the bugs related to the dynamic form support implementation, like this one, so maybe she has an idea or she can investigate much closer this issue.
Thanks.

Flags: needinfo?(ailea) → needinfo?(jneuberger)

Ok, I just found a new regression range for this issue that makes sense now: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f426167fc251be278ac2768d7604a32e468d78cc&tochange=83edcec30c306aea714ebc02d90bc196646623ab
so the regressor, as expected, seems to be bug 1837161.

Regressed by: 1837161

Set release status flags based on info from the regressing bug 1837161

janika, is it possible to set a priority/severity for this? Is this something we want to fix before shipping in 138?

Hi Dianna, I'm still unsure why and how this is regressed by Bug 1837161, but I'll debug further. But it's not critical if it doesn't get fixed in Fx138.

Severity: -- → S3
Flags: needinfo?(jneuberger)
Priority: -- → P2

Ok, I got to the root cause of it.

After initial field detection a tel-country-code field is added to the form dynamically. It is misclassified as address-level1 field and overrides the other correctly detected address-level1 field when the record gets created for the form submission. But the tel-country-code value is not a valid address-level1 value, the address-level1 field gets discarded from the record. And since it is a required field, discarding it aborts showing the save address doorhanger.

We misclassify the field, because we currently only detect tel-country-code fields when they explicitly set autocomplete="tel-country-code", which the field on saje.ca does not. I filed Bug 1955655 in order to also support detecting tel-country-code fields via regex-based heuristics.

Depends on: 1955655
Whiteboard: [fxcm-addr-compatibility]

Fixed by Bug 1955655.

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Flags: qe-verify+

Verified - Fixed in Nightly 138.0a1(2025-04-01). The address capture doorhanger is displayed and all the fields are captured and saved correctly.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: