New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669925 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug



Sign in to add a comment

[autofill] Depending on profile order, sometimes merge/dedupe selects the wrong address

Project Member Reported by rogerm@chromium.org, Nov 30 2016

Issue description

autofill_profile_comparator.cc contains a typo (or a copy-paste error) wherein it mistakenly keeps address1 instead of address2 when address2 is a superset of the tokens in address1.

The same address->SetInfo() line is copied into both the address1 and address2 case.
 

Comment 1 by zkoch@chromium.org, Nov 30 2016

Are you trying to merge this into M55?

Comment 2 by rogerm@chromium.org, Nov 30 2016

Labels: Merge-Request-55

Comment 3 by rogerm@chromium.org, Nov 30 2016

Yes, and all other current channel branches.

Comment 4 by rogerm@chromium.org, Nov 30 2016

Labels: Merge-Request-56

Comment 5 by rogerm@chromium.org, Nov 30 2016

The effect of this bug is that autofill profile merge/deduplication will always select the address from the first profile parameter passed to the merge function when one address is a subset of the other. The fix is a one character change to refer to the correct variable (address2) in the case where the second address should have been selected.

The fix, including expanded unit tests, is already in trunk for M57, but as part of a larger CL [1].

I've created https://codereview.chromium.org/2535103004/ based on branch 2883 to apply the fix to M55 and for merge to M56.

[1] https://codereview.chromium.org/2493253002


Comment 6 by gov...@chromium.org, Nov 30 2016

Per chat with rogerm@, we will take this merge in for next M55 stable update. It won't be included in first M55 stable promotion.
Project Member

Comment 7 by bugdroid1@chromium.org, Dec 1 2016

Labels: merge-merged-2883
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3cb0576de6902976d1b4271e0673aac0caa641fa

commit 3cb0576de6902976d1b4271e0673aac0caa641fa
Author: rogerm <rogerm@chromium.org>
Date: Thu Dec 01 04:21:45 2016

[autofill] Merge can select the wrong address.

Fixes a bug where, in the case where the the second address
should have been retained during merge, the first address is
retained, due to a typo in the referenced variable name.

BUG= 669925 
R=mathp@chromium.org
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2535103004
Cr-Commit-Position: refs/branch-heads/2883@{#700}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/3cb0576de6902976d1b4271e0673aac0caa641fa/components/autofill/core/browser/autofill_profile_comparator.cc

Cl listed at #7 got merged to M55 without approval. This time it is ok as we already discussed about this. Next time, please wait for approval.
Labels: -Merge-Request-55
Removing "Merge-Request-55" label as it is already merged to M55 at #7.

Comment 10 by dimu@chromium.org, Dec 2 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)
Project Member

Comment 11 by bugdroid1@chromium.org, Dec 2 2016

Labels: -merge-approved-56 merge-merged-2924
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8951973f96b7dba48c5cf3406fa0650beced8e5b

commit 8951973f96b7dba48c5cf3406fa0650beced8e5b
Author: Mathieu Perreault <mathp@chromium.org>
Date: Fri Dec 02 18:27:48 2016

[Merge m56][autofill] Merge can select the wrong address.

Fixes a bug where, in the case where the the second address
should have been retained during merge, the first address is
retained, due to a typo in the referenced variable name.

BUG= 669925 
R=mathp@chromium.org
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2535103004
Cr-Commit-Position: refs/branch-heads/2883@{#700}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}
(cherry picked from commit 3cb0576de6902976d1b4271e0673aac0caa641fa)

Review URL: https://codereview.chromium.org/2546653006 .

Cr-Commit-Position: refs/branch-heads/2924@{#289}
Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059}

[modify] https://crrev.com/8951973f96b7dba48c5cf3406fa0650beced8e5b/components/autofill/core/browser/autofill_profile_comparator.cc

Labels: Needs-Feedback
Could you please provide the TEST steps if this can be verified manually.
This is covered in unit-test coverage.
Status: Fixed (was: Started)

Sign in to add a comment