Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 779183003: LoginDatabase should allow retrieveing credentials with IP addresses (Closed)

Created:
6 years ago by vabr (Chromium)
Modified:
6 years ago
Reviewers:
Garrett Casto
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

LoginDatabase should allow retrieveing credentials with IP addresses Currently, when a credential for an IP-specified host is saved in the LoginDatabase, it cannot be retrieved, because it is subjected to the PSL matching check, and that fails for IP addresses. The reason is that IP addresses cannot be PSL matched (there is no subdomain structure to meaningfully match against). This CL makes sure, that PSL matching for IP addresses reduces to identity checking. Also, it makes sute that the LoginDatabase does not even attempt PSL matching on non-HTML forms (PSL matching is not intended for those). BUG=423327 Committed: https://crrev.com/71c5a60d9723bc4b8255177cf0dc60b9c750a908 Cr-Commit-Position: refs/heads/master@{#307107}

Patch Set 1 #

Patch Set 2 : Fix failing tests #

Total comments: 2

Patch Set 3 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -3 lines) Patch
M components/password_manager/core/browser/login_database.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 3 chunks +43 lines, -1 line 0 comments Download
M components/password_manager/core/browser/psl_matching_helper.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
vabr (Chromium)
Hi Garrett, PTAL. (I checked that the added test fails without the fix.) Cheers, Vaclav
6 years ago (2014-12-05 15:56:18 UTC) #2
Garrett Casto
LGTM I think that it would also make sense to return false from ShouldPSLMatchingApply() if ...
6 years ago (2014-12-05 19:12:38 UTC) #3
vabr (Chromium)
Thanks, Garrett. I addressed both your comments, and will be sending to CQ now. Cheers, ...
6 years ago (2014-12-05 22:22:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779183003/40001
6 years ago (2014-12-05 22:24:04 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-05 23:26:25 UTC) #7
commit-bot: I haz the power
6 years ago (2014-12-05 23:27:15 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/71c5a60d9723bc4b8255177cf0dc60b9c750a908
Cr-Commit-Position: refs/heads/master@{#307107}

Powered by Google App Engine
This is Rietveld 408576698