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

Issue 2467773002: Notify SSLManager when all password fields on a page are gone (Closed)

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

Description

Notify SSLManager when all password fields on a page are gone For HTTP-bad phase 1 (https://crbug.com/647754), a "Not secure" warning in the omnibox should show up when a password field is visible on an HTTP page, and disappear when all password fields are gone. This CL adds a WebContentsObserver to ContentPasswordManagerDriver which keeps track of frames in the current page that have visible password fields. When all frames' password fields have been hidden, the observer notifies the WebContents, which notifies the SSLManager, which removes the relevant flag from the SSLStatus. This is based on top of https://codereview.chromium.org/2468833002/, which sends a Mojo IPC from Blink whenever a frame's password fields are all hidden. BUG=658764 Committed: https://crrev.com/fae6b587d9fc7a0f04dad715173aaadcc31968de Cr-Commit-Position: refs/heads/master@{#429793}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : tests and cleanup #

Total comments: 13

Patch Set 4 : vabr comments #

Patch Set 5 : tweak SSLManager comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -36 lines) Patch
M components/password_manager/content/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.cc View 1 2 3 4 chunks +16 lines, -18 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver_unittest.cc View 1 2 3 1 chunk +129 lines, -0 lines 0 comments Download
A components/password_manager/content/browser/visible_password_observer.h View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A components/password_manager/content/browser/visible_password_observer.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_manager.h View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 8 chunks +19 lines, -12 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (14 generated)
estark
dcheng, could you please take a look at VisiblePasswordObserver in content_password_manager_driver.cc? Hoping to get some ...
4 years, 1 month ago (2016-11-02 23:47:00 UTC) #6
dcheng
On 2016/11/02 23:47:00, estark wrote: > dcheng, could you please take a look at VisiblePasswordObserver ...
4 years, 1 month ago (2016-11-03 05:33:01 UTC) #7
dcheng
(Also publishing drafts, oops) https://codereview.chromium.org/2467773002/diff/40001/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2467773002/diff/40001/components/password_manager/content/browser/content_password_manager_driver.cc#newcode50 components/password_manager/content/browser/content_password_manager_driver.cc:50: public base::SupportsUserData::Data { I'd recommend ...
4 years, 1 month ago (2016-11-03 05:33:34 UTC) #8
vabr (Chromium)
Hi estark@, I know you did not ask for password manager review yet, but below ...
4 years, 1 month ago (2016-11-03 14:57:44 UTC) #10
estark
vabr: thanks for taking an early look! Response inline. dcheng: > This seems reasonable to ...
4 years, 1 month ago (2016-11-03 15:13:35 UTC) #11
vabr (Chromium)
Thanks for the quick answer! My comment below reduced to just a suggestion to consider ...
4 years, 1 month ago (2016-11-03 15:19:59 UTC) #12
vabr (Chromium)
This is great, LGTM! https://codereview.chromium.org/2467773002/diff/40001/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2467773002/diff/40001/components/password_manager/content/browser/content_password_manager_driver.cc#newcode54 components/password_manager/content/browser/content_password_manager_driver.cc:54: VisiblePasswordObserver* observer = In addition ...
4 years, 1 month ago (2016-11-03 15:29:42 UTC) #13
estark
https://codereview.chromium.org/2467773002/diff/40001/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2467773002/diff/40001/components/password_manager/content/browser/content_password_manager_driver.cc#newcode54 components/password_manager/content/browser/content_password_manager_driver.cc:54: VisiblePasswordObserver* observer = On 2016/11/03 15:29:41, vabr (Chromium) wrote: ...
4 years, 1 month ago (2016-11-03 18:54:13 UTC) #16
estark
jam, can you please review the content/ half of this? Thanks!
4 years, 1 month ago (2016-11-03 18:54:52 UTC) #18
jam
lgtm
4 years, 1 month ago (2016-11-04 00:44:40 UTC) #21
estark
Thanks everyone! dcheng: I'm going to go ahead and land this because it'll be useful ...
4 years, 1 month ago (2016-11-04 00:46:32 UTC) #22
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/2467773002/80001
4 years, 1 month ago (2016-11-04 00:48:33 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-04 05:20:59 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 05:24:28 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fae6b587d9fc7a0f04dad715173aaadcc31968de
Cr-Commit-Position: refs/heads/master@{#429793}

Powered by Google App Engine
This is Rietveld 408576698