Open Bug 2064781 Opened 2 days ago Updated 7 hours ago

Autofill for Addresses and Names Fails with Some HTML Forms Using Firefox 154.0

Categories

(Toolkit :: Form Autofill, defect)

Firefox 154
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dalef, Unassigned)

References

Details

Attachments

(6 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:154.0) Gecko/20100101 Firefox/154.0

Steps to reproduce:

  1. Visit https://www.pch.com/pages/free-alternative-method-of-entry .

  2. Click in the "First Name*" field.

Actual results:

The cursor blinks in the "First Name*" field, allowing the user to enter text. However, no option to autofill the form is presented.

Expected results:

Firefox should have presented the option to autofill the form with name, email address, and phone number.

With the previous version of Firefox, version 153, HTML form Autofill functioned properly.

Other Firefox 154.0 users are reporting similar problems with HTML form Autofill - https://www.reddit.com/r/firefox/comments/1vro8hl/firefox_1540/ .

The Bugbug bot thinks this bug should belong to the 'Toolkit::Form Autofill' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Form Autofill
Product: Firefox → Toolkit

HI Ailea, could you help test if you can reproduce this issue with Fx 154 on Windows? Thanks

Flags: needinfo?(ailea)

Hi Dale, thank you for reporting this issue!
One question: besides the reported site, are you able to autofill on other sites?
For example, are you able to autofill the Address Sign-Up form on this page?

Also, could you help share the information in your about:support? Here are the steps:

  1. Type about:support in the address bar, press enter.
  2. Click Copy raw data to clipboard.
  3. Come back to this bug, click the Attach new file button above your first comment.
  4. Paste the content from your clipboard, add a description and hit Submit at the bottom.

Really appreciate for your help!

Flags: needinfo?(dalef)

On https://dimidl.github.io/signup/test.html, Firefox only completes the Email, Phone Number, and Zip Code fields when clicking in each form field and then selecting the appropriate text in the drop down menu. However, Firefox no longer completes the entire form in one click as it did in previous versions. In previous versions of Firefox, form fields that could be autofilled would appear with a yellow background; however, this yellow background in form fields no longer appears in Firefox 154.

Flags: needinfo?(dalef)

Hi Dale, Really appreciate for the you help, that helps a lot!
Could you help test the two sites (https://dimidl.github.io/signup/test.html and https://www.pch.com/pages/free-alternative-method-of-entry) again with our developer tool?

Here are the step:

  1. Install the autofill developer tool by clicking the autofill-devtools.xpi in this page
  2. Navigate to the page with the form and open the Web Developer Tools
  3. In the tool, you should see "Autofill" in the toolbar (see the attachment)
  4. Navigate to the Autofill Panel
  5. Check the "Show Unknown" checkbox
  6. Click the "Click to inspect" button
  7. Take a screen and then upload the screenshot

Thank you!

Flags: needinfo?(dalef)
Attached image dimidl form test screenshot β€”
Flags: needinfo?(dalef)
Attached image pch form test screenshot β€”

That is super helpful, thanks!

Note. this is meant to only for dicsussing the root cause, not for a fix.

On some machines the ML field classifier returns other for nearly every
address field and assigns a single dominant label (address-level2) to the
rest. No address section is then built, so no autofill dropdown or field
highlight is offered.

The Remote Settings record for formfill-encoder carries no dtype field.
When dtype is unset, ONNXPipeline falls back to "q8", so the encoder runs
int8-quantized while the head it feeds runs fp32.

int8 matmul is not numerically consistent across CPU backends: the x86 AVX2
path without VNNI saturates where ARM does not, so the encoder's pooled
embeddings differ by architecture. The head consumes those embeddings
directly, and the windowed feature row amplifies the difference by including
the cur - prev and cur - next terms. Off-distribution input collapses the
head onto one label. This is why an identical build with identical model
revisions classifies the same form correctly on arm64 and incorrectly on
x86_64.

Pin dtype explicitly on both engine configs instead of inheriting it. Caller
options override the Remote Settings record in
MLEngineChild.initializeInferenceEngine, so the encoder precision no longer
depends on a field that is currently absent. The head already resolves to fp32
from Remote Settings; pinning it as well guards against the same omission,
since model_quantized.onnx does not exist in that repository and a q8
fallback would fail engine creation outright.

Two trade-offs worth noting. The fp32 encoder artifact is 44.7 MB against
9.8 MB for the quantized one, so this costs a larger one-time download and
slower inference. And re-exporting the encoder with reduce_range would keep
the smaller artifact while fixing the x86 path, which is the better long-term
fix.

Attached image Autofill fails.gif β€”

We tested both sites in Firefox 154.0 on Windows 10.

Please let us know if there is anything else we can do to help investigate this issue.

Flags: needinfo?(ailea)
See Also: → 2065145

:Dale We've rolled out a mitigation for this issue, could you confirm the issue is still occurring after restarting the browser?

Flags: needinfo?(dalef)

(In reply to Dianna Smith [:diannaS] from comment #13)

:Dale We've rolled out a mitigation for this issue, could you confirm the issue is still occurring after restarting the browser?

After restarting Firefox, the issue is no longer occurring after the mitigation. Autofill can now be successfully used to complete the HTML forms at both https://www.pch.com/pages/free-alternative-method-of-entry and https://dimidl.github.io/signup/test.html .

Thank you.

Flags: needinfo?(dalef)

Can confirm version 154 has broken autofill. Last version did not have this problem.

(In reply to Michael from comment #15)

Can confirm version 154 has broken autofill. Last version did not have this problem.

A mitigation has been rolled out. You may wish to restart Firefox to determine if the Autofill problem is resolved for you.

Firefox is up to date. What mitigation where/how?

(In reply to Dale Feinstein from comment #16)

(In reply to Michael from comment #15)

Can confirm version 154 has broken autofill. Last version did not have this problem.

A mitigation has been rolled out. You may wish to restart Firefox to determine if the Autofill problem is resolved for you.

The sky is red, danger danger! Tell me how to make it green, good good. You've told me nothing!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: