Closed Bug 1849198 Opened 1 year ago Closed 4 months ago

[US][www.walmart.com] The Clear Autofill form dropdown menu is misplaced for the autofilled fields

Categories

(Toolkit :: Form Autofill, task)

Firefox 118
Desktop
Windows 10
task

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox118 --- wontfix
firefox128 --- verified

People

(Reporter: epopescu, Assigned: joschmidt)

References

(Blocks 1 open bug, Regressed 1 open bug, )

Details

(Whiteboard: [fxcm-addr-compatibility] )

Attachments

(3 files)

Attached video walmart.mp4

Found in

  • Nightly 118.0a1

Affected versions

  • Nightly 118.0a1

Tested platforms

  • Affected platforms: Windows 10 x64

Preconditions:

  1. Set browser.search.region to US in about:config
  2. Save 1 or 2 addresses in about:preferences#privacy, Forms & Autofill section
  3. Use US VPN

Steps to reproduce

  1. Go to https://www.walmart.com/
  2. Add one item to cart and proceed to checkout
  3. Use autofill feature in the Shipping address form by clicking inside any field
  4. Click again in the field previously autofilled to display the Clear Autofill form dropdown

Expected result

  • The Clear Autofill form dropdown is displayed under the autofilled field where user previously clicked in.

Actual result

  • The Clear Autofill form dropdown is misplaced under the Phone number field.

Regression range

  • N/A

Additional notes

Severity: -- → S3
Has STR: --- → yes
Assignee: nobody → joschmidt
Whiteboard: [fxcm-addr-compatibility]

A race condition has caused the wrong input element to be set as the
active, focused one when a script on a website reacts to autocomplete
inputs and manipulates the inputs. This happened because the
FormFillController listens for changes to the attributes of the input
elements, and then restarts itself delayed. This overwrote the focus
that had been set correctly in the meantime. This patch cancels this
restart when a new element is set as focus.

Attachment #9400687 - Attachment description: Bug 1849198 - fix misplaced autocomplete menu r=dimi → WIP: Bug 1849198 - fix misplaced autocomplete menu r=dimi
Attachment #9400687 - Attachment description: WIP: Bug 1849198 - fix misplaced autocomplete menu r=dimi → Bug 1849198 - fix misplaced autocomplete menu r=dimi
Pushed by joschmidt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f680a50705a9
test for misplaced autocomplete menu r=dimi
https://hg.mozilla.org/integration/autoland/rev/13d8d0d1fd01
fix misplaced autocomplete menu r=dimi
Pushed by joschmidt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f0d88c071cf9
test for misplaced autocomplete menu r=dimi
https://hg.mozilla.org/integration/autoland/rev/1f668a12c776
fix misplaced autocomplete menu r=dimi
Regressions: 1896906
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Flags: needinfo?(joschmidt)

I've replicated this issue using Nightly 118.0a1 on Windows 10 x64.
Verified as fixed in the latest Nightly 128.0a1 version on Windows 10 x64, macOS 11, and Ubuntu 22.04, as the issue no longer occurs.

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

Attachment

General

Created:
Updated:
Size: