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

Issue 2286553002: DevTools security panel: explain subresources with cert errors separately (Closed)

Created:
4 years, 3 months ago by estark
Modified:
4 years, 3 months ago
Reviewers:
felt, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, darin-cc_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools security panel: explain subresources with cert errors separately The browser process used to record subresources that were loaded with certificate errors as mixed content. This meant that DevTools wasn't able to distinguish mixed content (subresources loaded over HTTP) from subresources loaded with certificate errors. On a page that loaded subresources with certificate errors, DevTools would show the mixed content explanation, which was confusing/inaccurate because it described "HTTP resources". The commits in https://crbug.com/634171 created separate plumbing in the browser process for subresources with certificate errors. This CL uses that plumbing to distinguish these two cases for DevTools, and adds separate bullets to the security panel when there are subresources with cert errors on the page. I have also renamed various instances of "insecure content" to "mixed content" to be more precise: trying to use "insecure content" to mean any type of insecure content, and "mixed content" to mean specifically content loaded over HTTP on an HTTPS page. (There are still some more places throughout Chrome that need to be cleaned up with this terminology.) (For subresources with cert errors, there is no link to the Network panel with a filter like there is for mixed content; we can perhaps add that later.) BUG=587172 Committed: https://crrev.com/f61f3dfeb0af8a4b4d08b855689d73291dc31f8b Cr-Commit-Position: refs/heads/master@{#415383}

Patch Set 1 #

Patch Set 2 : add tests #

Patch Set 3 : update protocol description #

Patch Set 4 : some missed renames #

Total comments: 4

Patch Set 5 : try to make comment more clear #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -112 lines) Patch
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 2 3 4 2 chunks +31 lines, -5 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc View 1 2 3 9 chunks +18 lines, -18 lines 0 comments Download
A chrome/browser/ssl/chrome_security_state_model_client_unittest.cc View 1 1 chunk +133 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/protocol/security_handler.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M content/public/browser/security_style_explanations.h View 1 chunk +20 lines, -6 lines 0 comments Download
M content/public/browser/security_style_explanations.cc View 1 chunk +4 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/active-and-passive-subresources-with-cert-errors.html View 1 2 chunks +4 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/active-and-passive-subresources-with-cert-errors-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/active-subresource-with-cert-errors.html View 1 2 chunks +4 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/active-subresource-with-cert-errors-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/blocked-mixed-content-and-subresources-with-cert-errors.html View 1 1 chunk +7 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/blocked-mixed-content-and-subresources-with-cert-errors-expected.txt View 1 2 chunks +5 lines, -17 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/mixed-content-and-subresources-with-cert-errors.html View 1 2 chunks +4 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/mixed-content-and-subresources-with-cert-errors-expected.txt View 1 1 chunk +57 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/passive-subresource-with-cert-errors.html View 1 2 chunks +4 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/passive-subresource-with-cert-errors-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/security-explanation-ordering.html View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 7 chunks +51 lines, -23 lines 0 comments Download

Messages

Total messages: 32 (20 generated)
estark
pfeldman, PTAL?
4 years, 3 months ago (2016-08-26 01:40:02 UTC) #4
pfeldman
devtools and content lgtm, but you need someone to look at chrome.
4 years, 3 months ago (2016-08-26 17:20:29 UTC) #13
estark
Thanks pfeldman. felt, could you please look at the changes in //chrome for another pair ...
4 years, 3 months ago (2016-08-26 17:23:24 UTC) #15
felt
Gahhhh sorry this got mislabeled in my filters, will review this morning.
4 years, 3 months ago (2016-08-30 13:54:10 UTC) #16
felt
https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode227 chrome/browser/ssl/chrome_security_state_model_client.cc:227: if (!is_cert_status_error || is_cert_status_minor_error) { should that be an ...
4 years, 3 months ago (2016-08-30 16:28:52 UTC) #17
estark
https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode227 chrome/browser/ssl/chrome_security_state_model_client.cc:227: if (!is_cert_status_error || is_cert_status_minor_error) { On 2016/08/30 16:28:52, felt ...
4 years, 3 months ago (2016-08-30 16:36:57 UTC) #18
felt
https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode227 chrome/browser/ssl/chrome_security_state_model_client.cc:227: if (!is_cert_status_error || is_cert_status_minor_error) { On 2016/08/30 16:36:57, estark ...
4 years, 3 months ago (2016-08-30 16:41:41 UTC) #19
estark
https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc File chrome/browser/ssl/chrome_security_state_model_client.cc (right): https://codereview.chromium.org/2286553002/diff/60001/chrome/browser/ssl/chrome_security_state_model_client.cc#newcode227 chrome/browser/ssl/chrome_security_state_model_client.cc:227: if (!is_cert_status_error || is_cert_status_minor_error) { On 2016/08/30 16:41:41, felt ...
4 years, 3 months ago (2016-08-30 17:27:58 UTC) #20
felt
cool thx, it seems clearer now. lgtm
4 years, 3 months ago (2016-08-30 18:35:51 UTC) #23
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/2286553002/80001
4 years, 3 months ago (2016-08-30 18:58:34 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-08-30 19:03:47 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 19:06:26 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f61f3dfeb0af8a4b4d08b855689d73291dc31f8b
Cr-Commit-Position: refs/heads/master@{#415383}

Powered by Google App Engine
This is Rietveld 408576698