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

Issue 2500213002: Track visible password fields by RenderFrameHost, not frame tree node (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years, 1 month ago
Reviewers:
vabr (Chromium), engedy
CC:
chromium-reviews, jam, gcasto+watchlist_chromium.org, darin-cc_chromium.org, vabr+watchlistpasswordmanager_chromium.org, vabr (Chromium)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track visible password fields by RenderFrameHost, not frame tree node Previously, VisiblePasswordObserver was tracking each frame tree node that shows or removes password fields. However, the same frame tree node can be associated with different RenderFrameHosts over time: see the comment on RenderFrameHost::GetFrameTreeNodeId. This means that we could receive a message that a RenderFrameHost corresponding to frame tree node X was deleted, and we'd treat that as if frame tree node X no longer has visible password fields. But frame tree node X could have been transferred to a different process during a navigation, meaning that there might be a different RenderFrameHost for frame tree node X that does have a visible password field. In this case we would incorrectly remove the "Not secure" warning when the original RenderFrameHost is deleted. This CL tracks password fields by RenderFrameHost instead of by frame tree node id, so that we don't confuse messages from different RFHs corresponding to the same frame tree node during cross-process navigations. BUG=664674 TEST=With the #mark-non-secure-as flag set to "Display a verbose state when password or credit card fields are detected on an HTTP page", navigate to http://nytimes.com, then to http://http-password.badssl.com. Ensure that a "Not secure" warning shows up in the omnibox on the latter page and does not disappear. Repeat several times since the reproduction is flaky. Committed: https://crrev.com/31558028cf555b5ff9a29917b206c52ac8faee20 Cr-Commit-Position: refs/heads/master@{#432167}

Patch Set 1 #

Total comments: 1

Patch Set 2 : vabr comment #

Patch Set 3 : fix unit test memory leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -9 lines) Patch
M components/password_manager/content/browser/content_password_manager_driver_unittest.cc View 1 2 2 chunks +38 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/visible_password_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/content/browser/visible_password_observer.cc View 3 chunks +5 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (13 generated)
estark
vabr, PTAL? I tried to explain in the CL description, but the gist of it ...
4 years, 1 month ago (2016-11-15 01:05:53 UTC) #6
estark
Oops, vabr is OOO so I'm switching over to engedy instead. engedy: vabr has a ...
4 years, 1 month ago (2016-11-15 01:08:46 UTC) #8
vabr (Chromium)
LGTM, this is a canonical CL: clear code, proper test and a helpful CL description! ...
4 years, 1 month ago (2016-11-15 08:00:22 UTC) #10
estark
On 2016/11/15 08:00:22, vabr (travelling until 21 Nov) wrote: > LGTM, this is a canonical ...
4 years, 1 month ago (2016-11-15 08:55:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500213002/20001
4 years, 1 month ago (2016-11-15 08:56:25 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/262327)
4 years, 1 month ago (2016-11-15 10:16:00 UTC) #16
engedy
FWIW, LGTM. :-)
4 years, 1 month ago (2016-11-15 10:18:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500213002/40001
4 years, 1 month ago (2016-11-15 11:53:30 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-15 12:33:30 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 12:35:14 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/31558028cf555b5ff9a29917b206c52ac8faee20
Cr-Commit-Position: refs/heads/master@{#432167}

Powered by Google App Engine
This is Rietveld 408576698