mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.08k stars 2.88k forks source link

Update card is not displayed when editing a saved card #20482

Open dragosb01 opened 1 month ago

dragosb01 commented 1 month ago

Steps to reproduce

Follow the steps from below TC or

  1. Make sure you have a credit card already added
  2. Access https://checkout.stripe.dev/preview
  3. Select a card already saved
  4. Modify the card details
  5. Tap Pay button

    Expected behavior

    Update card prompt should be displayed

    Actual behavior

    Securely save this card prompt is displayed

    Device & build information

┆Issue is synchronized with this Jira Task

data-sync-user commented 1 month ago

➤ Norberto Andres Furlan commented:

Razvan Litianu can you take a look to this one?

data-sync-user commented 1 week ago

➤ Matt Lichtenstein commented:

Some findings:

data-sync-user commented 1 week ago

➤ Matt Lichtenstein commented:

The payload (WKScriptMessage) seems to contain old field values (from autofill). Issam Mani could this be an content script issue?

data-sync-user commented 1 week ago

➤ Issam Mani commented:

Ok I think this is already tracked somewhere else. Norberto Andres Furlan what do you think is the best way to track these things, so we don’t end up investigating them twice ?

data-sync-user commented 1 week ago

➤ Issam Mani commented:

It’s tracked here: https://mozilla-hub.atlassian.net/browse/FXIOS-9026 ( https://mozilla-hub.atlassian.net/browse/FXIOS-9026|smart-link ) . And this ticket is blocked by another one from Desktop.

data-sync-user commented 1 week ago

➤ Issam Mani commented:

{quote}The payload (WKScriptMessage) seems to contain old field values (from autofill). Issam Mani could this be an content script issue?{quote}

I documented what happens in this comment ( https://bugzilla.mozilla.org/show_bug.cgi?id=1896494#c1 ). TL;DR we have hidden fields and we fill those and this causes the issue. This could happen for any split field not only expiration date.

data-sync-user commented 6 days ago

➤ Matt Lichtenstein commented:

Closing as duplicate of https://mozilla-hub.atlassian.net/browse/FXIOS-9026 ( https://mozilla-hub.atlassian.net/browse/FXIOS-9026|smart-link )