New issue
Advanced search Search tips

Issue 653364 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Chrome , Mac
Pri: 1
Type: Bug



Sign in to add a comment

Shows only one credential in account chooser when id is duplicate

Project Member Reported by agektmr@chromium.org, Oct 6 2016

Issue description

Version: Chrome Version 55.0.2881.0 canary (64-bit)
OS: Mac OS X

What steps will reproduce the problem?
(1) Go to https://credential-management-sample.appspot.com/
(2) Sign up using Google Sign-In
(3) Sign up using *the same gmail address as above* with password
(4) Click on "Sign In" button and see what will show up

What is the expected output?
2 accounts

What do you see instead?
only 1 account


Please use labels and text to provide additional information.

 
Labels: OS-Chrome OS-Linux OS-Windows
Status: Started (was: Untriaged)
Status: Fixed (was: Started)

Comment 4 by ajha@chromium.org, Oct 10 2016

Cc: ajha@chromium.org
Components: UI>Browser>Passwords
Labels: Needs-Feedback
Tried a verification of this as per the test steps mentioned in C#0 on Mac OS 10.11.6, chrome version:55.0.2883.6, enabling credential management API flag.

Still showing only one account in Account chooser dialog as per the test followed from the attached screen-cast.

vasilii@: Could you please review the attached screen-cast and confirm if anything being missed there in the repro steps.

653364.mp4
1.5 MB View Download
You don't need to enable the API. It's enabled by default.

You didn't save the second credential. You need to click "Sign in with Google" and use the same email. When you have two credentials in chrome://settings/passwords then you can check the account chooser.
Confirmed it works when I save with
1. Google Sign-In
2. id/password
both using the same gmail address. But also confirmed that opposite order won't work.
1. id/password
2. Google Sign-In
What doesn't work? Do you have both credentials saved?
1. Google Sign-In
2. id/password
Will show both credentials in the user mediation bubble, but
1. id/password
2. Google Sign-In
Will only show 1 and 2 is not shown despite I've confirmed to store it.
I reproduced it but the case is that the second credential isn't saved. Can you check on chrome://settings/passwords?
Status: Assigned (was: Fixed)
The bug is in PasswordFormManager::CreatePendingCredentials. FindBestSavedMatch returns the existing credential and the password manager tries to update it.
Labels: -OS-Linux Merge-Request-55
I want to merge r425017 (a simple fix).

Comment 13 by dimu@chromium.org, Oct 18 2016

Labels: -Merge-Request-55 Merge-Approved-55 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M55 (branch: 2883)
Isn't it merged in https://codereview.chromium.org/2425243002/ ?
Labels: -Merge-Approved-55 merge-merged-2883
Status: Fixed (was: Assigned)
Project Member

Comment 18 by bugdroid1@chromium.org, Oct 27 2016

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

commit 4e78201c38098209d4a2c9b559cbdc0704e625b2
Author: Vasilii Sukhanov <vasilii@chromium.org>
Date: Tue Oct 18 13:09:04 2016

CM API: disallow a federated credential to update a password credential.

BUG= 653364 

Review-Url: https://codereview.chromium.org/2416783002
Cr-Commit-Position: refs/heads/master@{#425017}
(cherry picked from commit f0afbfdae3929aa90e5ef611f02cd2f81e6ebdff)

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

Cr-Commit-Position: refs/branch-heads/2883@{#173}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/4e78201c38098209d4a2c9b559cbdc0704e625b2/components/password_manager/content/browser/credential_manager_impl_unittest.cc
[modify] https://crrev.com/4e78201c38098209d4a2c9b559cbdc0704e625b2/components/password_manager/core/browser/password_form_manager.cc

Comment 19 by dimu@google.com, Nov 4 2016

Labels: -merge-merged-2840
[Automated comment] removing mislabelled merge-merged-2840

Sign in to add a comment