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

Issue 2410043003: Add a console messsage for HTTP-bad (Closed)

Created:
4 years, 2 months ago by estark
Modified:
3 years, 10 months ago
CC:
chromium-reviews, emilyschechter
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a console messsage for HTTP-bad This CL logs a console message (at most once per navigation) when ChromeSecurityStateModelClient::GetSecurityInfo() returns a security level of HTTP_SHOW_WARNING. This message will allow us to start testing when password/credit card detection will trigger a "Not secure" warning in the omnibox, and will allow developers to start testing their sites. BUG=647561 TEST=In chrome://flags, set #mark-non-secure-as to "Display a verbose state when password or credit card fields are detected on an HTTP page". Visit an HTTP page with a password field, like http://nytimes.com. Open Developer Tools and observe a warning message about the "Not secure" warning in the console. Committed: https://crrev.com/f8b269e58af3d7413986fb3196ce9e3f2d67a72f Cr-Commit-Position: refs/heads/master@{#425739}

Patch Set 1 #

Total comments: 2

Patch Set 2 : elawrence comments #

Patch Set 3 : rebase on bug fix https://codereview.chromium.org/2408393003/ #

Patch Set 4 : add a browser test #

Patch Set 5 : rebase #

Patch Set 6 : add test for subframe navigation #

Total comments: 6

Patch Set 7 : rebase #

Patch Set 8 : move to Browser::VisibleSSLStateChanged #

Patch Set 9 : cleanup #

Total comments: 11

Patch Set 10 : elawrence, sky comments #

Total comments: 9

Patch Set 11 : sky comments #

Patch Set 12 : sky comments, take 2 #

Patch Set 13 : rebase #

Patch Set 14 : de-const other WebContentsDelegates #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -9 lines) Patch
M chrome/browser/ssl/chrome_security_state_model_client.h View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +287 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -1 line 3 comments Download
A chrome/test/data/ssl/page_with_frame.html View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/ssl/ssl_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 65 (36 generated)
estark
felt, elawrence, PTAL? I'm not thrilled about doing this inside a const getter (GetSecurityInfo). It ...
4 years, 2 months ago (2016-10-11 21:57:03 UTC) #4
elawrence
Looks reasonable to me. When you refer to "once per navigation" is that equivalent to ...
4 years, 2 months ago (2016-10-12 02:09:45 UTC) #7
estark
cc emilyschechter: see Eric's question at https://codereview.chromium.org/2410043003/diff/1/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode175 about the choice of "URL bar" in the ...
4 years, 2 months ago (2016-10-12 02:43:19 UTC) #8
estark
Ha. Good news: I figured out how to write a test for this. Bad news: ...
4 years, 2 months ago (2016-10-12 05:33:46 UTC) #9
estark
Alrighty, this is ready for review again. I rebased on the bug fix (https://codereview.chromium.org/2408393003/, https://codereview.chromium.org/2410023003/) ...
4 years, 2 months ago (2016-10-12 22:57:10 UTC) #15
felt
On 2016/10/12 22:57:10, estark wrote: > Alrighty, this is ready for review again. I rebased ...
4 years, 2 months ago (2016-10-13 03:39:24 UTC) #18
meacer
I forgot to send my comments (questions, rather) yesterday. https://codereview.chromium.org/2410043003/diff/140001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2410043003/diff/140001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode326 chrome/browser/ssl/chrome_security_state_model_client.cc:326: ...
4 years, 2 months ago (2016-10-13 17:41:01 UTC) #21
estark
https://codereview.chromium.org/2410043003/diff/140001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2410043003/diff/140001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode326 chrome/browser/ssl/chrome_security_state_model_client.cc:326: } On 2016/10/13 17:41:01, Mustafa Emre Acer wrote: > ...
4 years, 2 months ago (2016-10-13 17:59:18 UTC) #22
estark
Ok, updated to log the message in Browser::VisibleSSLStateChanged instead in the getter. +msw for chrome/browser/ui, ...
4 years, 2 months ago (2016-10-13 23:40:34 UTC) #28
msw
https://codereview.chromium.org/2410043003/diff/200001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/200001/chrome/browser/ui/browser.cc#newcode1435 chrome/browser/ui/browser.cc:1435: if (!logged_http_warning_on_current_navigation_) { I'm not sure if this is ...
4 years, 2 months ago (2016-10-13 23:58:01 UTC) #31
estark
+sky for chrome/browser/ui, at msw's suggestion
4 years, 2 months ago (2016-10-14 00:02:09 UTC) #33
elawrence
Looks good to me; minor nits and a question about adding a missing test. https://codereview.chromium.org/2410043003/diff/200001/chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc ...
4 years, 2 months ago (2016-10-14 15:12:28 UTC) #34
sky
https://codereview.chromium.org/2410043003/diff/200001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/200001/chrome/browser/ui/browser.cc#newcode1665 chrome/browser/ui/browser.cc:1665: logged_http_warning_on_current_navigation_ = false; Browser is the delegate of multiple ...
4 years, 2 months ago (2016-10-14 16:44:03 UTC) #35
estark
sky: I moved the logging from Browser to a ChromeSSMClient method called by Browser::VisibleSSLStateChanged. https://codereview.chromium.org/2410043003/diff/140001/chrome/browser/ssl/chrome_security_state_model_client.cc ...
4 years, 2 months ago (2016-10-14 17:57:07 UTC) #36
sky
https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode307 chrome/browser/ssl/chrome_security_state_model_client.cc:307: if (!logged_http_warning_on_current_navigation_) { optional: early out (we generally do ...
4 years, 2 months ago (2016-10-14 22:21:47 UTC) #37
estark
https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode307 chrome/browser/ssl/chrome_security_state_model_client.cc:307: if (!logged_http_warning_on_current_navigation_) { On 2016/10/14 22:21:47, sky wrote: > ...
4 years, 2 months ago (2016-10-14 23:50:01 UTC) #42
sky
https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ui/browser.cc#newcode1432 chrome/browser/ui/browser.cc:1432: if (active_contents == source) { On 2016/10/14 23:50:01, estark ...
4 years, 2 months ago (2016-10-17 15:41:48 UTC) #49
estark
https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ui/browser.cc#newcode1432 chrome/browser/ui/browser.cc:1432: if (active_contents == source) { On 2016/10/17 15:41:48, sky ...
4 years, 2 months ago (2016-10-17 16:11:13 UTC) #50
estark
https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/220001/chrome/browser/ui/browser.cc#newcode1432 chrome/browser/ui/browser.cc:1432: if (active_contents == source) { On 2016/10/17 16:11:13, estark ...
4 years, 2 months ago (2016-10-17 16:14:08 UTC) #51
sky
I was a bit confused by your early comment. I thought you were adding a ...
4 years, 2 months ago (2016-10-17 16:29:07 UTC) #52
felt
https://codereview.chromium.org/2410043003/diff/300001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/300001/chrome/browser/ui/browser.cc#newcode1435 chrome/browser/ui/browser.cc:1435: ChromeSecurityStateModelClient::FromWebContents(source); To make sure I understand: (1) Something triggers ...
4 years, 2 months ago (2016-10-17 16:59:33 UTC) #53
estark
https://codereview.chromium.org/2410043003/diff/300001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/300001/chrome/browser/ui/browser.cc#newcode1435 chrome/browser/ui/browser.cc:1435: ChromeSecurityStateModelClient::FromWebContents(source); On 2016/10/17 16:59:33, felt wrote: > To make ...
4 years, 2 months ago (2016-10-17 17:14:21 UTC) #54
felt
lgtm https://codereview.chromium.org/2410043003/diff/300001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/2410043003/diff/300001/chrome/browser/ui/browser.cc#newcode1435 chrome/browser/ui/browser.cc:1435: ChromeSecurityStateModelClient::FromWebContents(source); On 2016/10/17 17:14:20, estark wrote: > On ...
4 years, 2 months ago (2016-10-17 17:18:37 UTC) #55
estark
avi: can you please review the change to content/public? (Removing `const` from an argument per ...
4 years, 2 months ago (2016-10-17 17:22:52 UTC) #57
boliu
On 2016/10/17 17:22:52, estark wrote: > avi: can you please review the change to content/public? ...
4 years, 2 months ago (2016-10-17 17:25:15 UTC) #58
Avi (use Gerrit)
LGTM
4 years, 2 months ago (2016-10-17 17:26:22 UTC) #59
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/2410043003/300001
4 years, 2 months ago (2016-10-17 17:27:16 UTC) #61
commit-bot: I haz the power
Committed patchset #14 (id:300001)
4 years, 2 months ago (2016-10-17 19:17:40 UTC) #63
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 19:23:01 UTC) #65
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/f8b269e58af3d7413986fb3196ce9e3f2d67a72f
Cr-Commit-Position: refs/heads/master@{#425739}

Powered by Google App Engine
This is Rietveld 408576698