Closed Bug 1758369 Opened 4 years ago Closed 4 years ago

Credit card logo in save/edit panel is displayed as generic for certain websites

Categories

(Toolkit :: Form Autofill, defect, P2)

defect

Tracking

()

VERIFIED FIXED
101 Branch
Tracking Status
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- wontfix
firefox101 --- verified

People

(Reporter: cgeorgiu, Assigned: tgiles)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-quality-compat-form-autofill])

Attachments

(2 files)

Note

Affected versions

  • latest Nightly 99.0a1
  • RC3 98.0

Affected platforms

  • Windows 10 x64
  • macOS 11
  • Ubuntu 18.04 x64

Preconditions

  • browser.search.region set to US
  • a valid credit card is saved in about:preferences

Steps to reproduce

  1. Launch Firefox.
  2. Navigate to https://www.ebay.com/.
  3. Choose an item, then proceed to the checkout.
  4. Enter the information in the credit card fields.
  5. Update the credit card information that you've previously entered.
  6. Observe the credit card logo from the door hanger.

Expected result

  • The credit card logo is correctly displayed in the door hanger.

Actual result

  • A generic credit card logo is displayed in the door hanger.

Suggested Severity

  • S3, since this is not a regression, and only affects ebay from what I've tested so far.

Regression range

Additional notes

Hi,

We encountered this issue as well on multiple websites, on Beta 99.0b1 and the latest Nightly 100.0a1: asos.co.uk, tesco.com, asda.com, screwfix.com, currys.co.uk.

Please let me know if separate bugs are needed for each website mentioned above.
Thanks!

Alin, I'm not able to reproduce on asos.co.uk. I'm on secure.asos.com for their check out and I'm able to see the test VISA card logo as expected. What card number did you use? And were you on a different payment site than secure.asos.com?

Tesco.com is the same as the ebay case, we're not trimming the credit card number before trying to search for a network match. Since there's spaces in the card number, we don't return a valid network match therefore we show the generic logo.

Not able to create an account for screwfix. Alin, if we have a test account for this could you message me the credentials so I can see what's going on with our credit card submission handling. Thanks!

Currys.co.uk is the same as Tesco.com and ebay, we're not trimming the credit card number before trying to search for a network match.

Flags: needinfo?(alin.ilea)
Attached video asos cc logo issue.mp4

Tim, I attached here a video of my behavior. I tried with multiple CC Visa card numbers: 4267662953520654, 4485163092477407, 4253771142675810, 4532484770494909, 4119638430740339, 4929873107978496 (the card logo is displayed accordingly on other websites with the same CC numbers). I am using the same secure.asos.com checkout.
Tested on Windows 10, Nightly 100.0a1 (2022-03-09), en-GB locale build with browser.search.region set to UK. Tested with en-US locale build with region set to US as well but I got the same result. Please let me know if you need any other information.

Also, that list of websites is the result of the UK region testing. We will update the list after we finish the FR and DE regions as well, if the issue is reproducible on some websites from that regions as well.
Sent the testing credentials for Screwfix in private.

Thanks a lot!

Flags: needinfo?(alin.ilea)

screwfix.com has the same issue of spaces in the submitted card number. Same as ebay, tesco, and currys.

Okay, I'm able to reproduce on secure.asos.com. Since the site doesn't allow you to paste in a credit card number, I was trying to fudge a result by using a previously stored card and changing details around to get a new card to appear. I guess the image was cached with this card result or something, but using a new card shows the generic logo. As with the previous cases, this is because we don't replace whitespace in the card number before trying to match a card network.

Assignee: nobody → tgiles
Status: NEW → ASSIGNED
Priority: -- → P2

This fixes the cases where a website will modify the credit card number after it has been filled.

See Also: → 1759180
Blocks: 1759115
Blocks: 1760639
See Also: → 1761104
Pushed by tgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7b32aee78e60 Ensure credit card number has no whitespaces or dashes before trying to match type. r=dimi,sgalich
Pushed by tgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/053c8f65df23 Ensure credit card number has no whitespaces or dashes before trying to match type. r=dimi,sgalich

Backed out changeset 053c8f65df23 (bug 1758369) for causing gv-junit failures in geckoview.test.AutocompleteTest#creditCardSaveModifyAccept

Backout link:https://hg.mozilla.org/integration/autoland/rev/3fcbaba555a77534d3524b194e8a48078192b23b

Push with failures

Failure log

INFO -  04-01 19:37:13.876 D/GeckoViewContent( 3486): handleEvent: DOMWindowClose
[task 2022-04-01T19:37:14.059Z] 19:37:14     INFO -  04-01 19:37:13.876 D/GeckoViewConsole( 3486): onEvent GeckoView:WebExtension:List null
[task 2022-04-01T19:37:14.059Z] 19:37:14     INFO -  04-01 19:37:13.877 E/GeckoSessionTestRule( 3486): test_end c5ee677f-bc83-49bd-9e28-2d35f3d0f059 creditCardSaveModifyAccept(org.mozilla.geckoview.test.AutocompleteTest)
[task 2022-04-01T19:37:14.059Z] 19:37:14  WARNING -  TEST-UNEXPECTED-FAIL | org.mozilla.geckoview.test.AutocompleteTest#creditCardSaveModifyAccept | java.lang.AssertionError: Credit card number should match
[task 2022-04-01T19:37:14.059Z] 19:37:14     INFO -  TEST-INFO took 164ms
Flags: needinfo?(tgiles)
Pushed by tgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee41887d66eb Ensure credit card number has no whitespaces or dashes before trying to match type. r=dimi,sgalich,geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.

The patch landed in nightly and beta is affected.
:tgiles, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(tgiles)
Flags: needinfo?(tgiles)
Whiteboard: [fxcm-quality-compat-form-autofill]

I managed to reproduce this issue on Firefox 100.0(20220428192727) on Ubuntu 20.04. Verified as fixed on Firefox 101.0b4(20220508185621) and Nightly 102.0a1(20220509190429) on Ubuntu 20.04, macOS 11 and Win10 64-bits.

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: