Closed Bug 1845305 Opened 1 year ago Closed 9 months ago

[ES][toysrus.es] CC dropdown is not displayed for any of the CC eligible fields

Categories

(Toolkit :: Form Autofill, task, P2)

Firefox 117
Desktop
All
task

Tracking

()

VERIFIED FIXED
125 Branch
Tracking Status
firefox115 --- disabled
firefox116 --- disabled
firefox117 --- disabled
firefox125 --- verified

People

(Reporter: ailea, Assigned: joschmidt)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [fxcm-cc-new-geo])

Attachments

(3 files, 2 obsolete files)

Attached video 2023-07-25_16h38_42.mp4

Found in

  • 117.0a1

Affected versions

  • 117.0a1

Tested platforms

  • Affected platforms: Windows 10

Preconditions

  • browser.search.region = ES
  • Have at least one CC already saved

Steps to reproduce

  1. Reach the payment form on https://www.toysrus.es
  2. Click on any CC eligible field

Expected result

  • CC dropdown is displayed for any of the CC fields

Actual result

  • CC dropdown is not displayed for any of the CC fields

Regression range

  • N/A

Additional notes

  • Not reproducible on Chrome, the CC dropdown is displayed and the autofill is working ok there.
  • Fathom Fox Sample
Priority: -- → P2
Whiteboard: [fxcm-cc-new-geo]

Looks like when we focus on the <input> field, the event target has null principal[1] so we don't run the formautofill code?

[1] https://searchfox.org/mozilla-central/rev/0058dbdd1c2eb9164e195082d18f3a657f291824/toolkit/components/formautofill/FormAutofillChild.sys.mjs#97

Assignee: nobody → ssachdev

Fwiw you might want to check this to know where the null principal came from.

Assignee: ssachdev → nobody
Assignee: nobody → joschmidt

Note the test fails, and the fix will be provided via the next patch in this stack.

Attachment #9380390 - Attachment description: WIP: Bug 1845305 - add tests for sandboxed iframe autocompletion → Bug 1845305 - add tests for sandboxed iframe autocompletion r=dimi

which has been unitentionally copied. Removing the principal enables autocompletion in sandboxed iframe forms.

Attachment #9380392 - Attachment description: Bug 1845305 - remove principal check for autocompletion r=dimi → Bug 1845305 - remove null principal check for autocompletion r=dimi

Note the test fails, and the fix will be provided via the next patch in this stack.

Removing the null principal check enables autocompletion in sandboxed iframe forms.

fyi: tests are in the previous commit of the stack.

Attachment #9380392 - Attachment is obsolete: true
Attachment #9380390 - Attachment is obsolete: true
Pushed by joschmidt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/25b23238ed9c add tests for sandboxed iframe autocompletion r=dimi https://hg.mozilla.org/integration/autoland/rev/45324f226216 remove null principal check for autocompletion r=dimi
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch

Verified - Fixed in Nightly 125.0a1 (2024-06-03). The CC dropdown is now displayed and all the eligible CC form fields are autofilled accordingly.

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

Attachment

General

Created:
Updated:
Size: