New issue
Advanced search Search tips

Issue 723610 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Previous country state is shown in Payment Request address snippet after changing country to one with not state

Project Member Reported by mad@chromium.org, May 17 2017

Issue description

Create an address in a country with a state (either from the Chrome settings or the Payment request UI), e.g., US or Canada.

After it's been saved, edit it to change the country to one that has not state (e.g., Germany). Go back to Payment request address list, and notice that the address snippet contains the state from the previous country.

 
Owner: mad@chromium.org
Status: Assigned (was: Untriaged)
Trying to keep all bugs assigned to avoid losing track of tasks. The assigned owner is not necessarily the person who will perform the work, but it is the best person to ask questions about this issue.

Comment 2 by mad@chromium.org, Jun 19 2017

Owner: ma...@chromium.org
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments

Comment 4 by ma...@chromium.org, Jul 6 2017

Status: Started (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Jul 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ee7829e4607ec6e4b27efbfdf4212c8e447bde13

commit ee7829e4607ec6e4b27efbfdf4212c8e447bde13
Author: mathp <mathp@chromium.org>
Date: Thu Jul 06 22:30:37 2017

[Payments] When saving an edited address in editor, clear data first.

The original bug was that some information was wrongfully being retained
in the edited profile when saved, because some fields were absent in the
newly selected country (say you edited from US to Albania, which has no
states). We fix this by clearing all the address fields from the profile
being edited, before replacing with the values in the editor.

BUG= 723610 
TEST=browser_tests

Review-Url: https://codereview.chromium.org/2972973002
Cr-Commit-Position: refs/heads/master@{#484756}

[modify] https://crrev.com/ee7829e4607ec6e4b27efbfdf4212c8e447bde13/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
[modify] https://crrev.com/ee7829e4607ec6e4b27efbfdf4212c8e447bde13/chrome/browser/ui/views/payments/shipping_address_editor_view_controller_browsertest.cc
[modify] https://crrev.com/ee7829e4607ec6e4b27efbfdf4212c8e447bde13/components/autofill/core/browser/autofill_profile.cc
[modify] https://crrev.com/ee7829e4607ec6e4b27efbfdf4212c8e447bde13/components/autofill/core/browser/autofill_profile.h

Comment 6 by ma...@chromium.org, Jul 7 2017

Status: Fixed (was: Started)

Sign in to add a comment