Fix wrong plaintext password being shown after deletion
This CL fixes the linked bug by ensuring the plaintext password property in ShowPasswordBehavior is reset when the element is pointed to another credential, i.e. when "entry" is changed. The result is that removing a credential, or doing a search filter will hide any plaintext passwords being shown. Before what happened was: - Deleting a pwd would update the savedPasswords array in MergePasswordsStoreCopiesBehavior. - The backing array of the iron-list of pwds in PasswordsSection would be updated. - The "entry" properties of the PasswordListItem in the iron-list would be updated *but* the "password" properties wouldn't be updated. Contrary to what one may believe, removing an element from the backing array of an iron-list doesn't actually remove the corresponding element from the DOM. The CL also makes the visibility state of the password in the edit dialog not be synced with the corresponding row in the pwd list anymore. Bug: 1110290 Change-Id: Ibb5d10999b4c966fcf382f5a18e76ce462090188 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2325731 Commit-Queue: Victor Vianna <victorvianna@google.com> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#792681}
Showing
Please register or sign in to comment