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

Issue 2244243002: Adjust WebsiteSettings statuses for subresources with cert errors (Closed)

Created:
4 years, 4 months ago by estark
Modified:
4 years, 4 months ago
Reviewers:
felt
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust WebsiteSettings statuses for subresources with cert errors SSLPolicy and SecurityStateModel used to record subresources with certificate errors as mixed content. As of https://codereview.chromium.org/2226363002/, however, subresources with cert errors are recorderded separately, in their own |content_with_cert_errors_status| field on SecurityStateModel::SecurityInfo. This CL updates WebsiteSettings to warn the user when there are subresources with cert errors on the page. Currently, WebsiteSettings uses the same statuses as are used for mixed content, because the strings happen to apply well to both types of insecure content. (I also renamed a few strings and enums to make it more clear that they describe different types of insecure subresources, not just mixed content.) In future, maybe we'd want to use different strings to describe subresources with cert errors in WebsiteSettings, but I think the mixed content strings work well enough for now. (Other UI like DevTools will distinguish mixed content from subresources with cert errors, which is one of the reasons that we separated the two into |mixed_content_status| and |content_with_cert_errors_status|.) For simplicity, WebsiteSettings ignores subresources with certificate errors when the main resource was loaded with a certificate error. I think that trying to distinguish subresource cert errors from cert errors on the main resource is probably TMI for the average user. BUG=634171 Committed: https://crrev.com/00e83f13e0edc9bc0d3df45cf25f96fc55149b2b Cr-Commit-Position: refs/heads/master@{#413190}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : felt comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -80 lines) Patch
M chrome/app/generated_resources.grd View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 4 chunks +57 lines, -16 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.cc View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 3 chunks +156 lines, -52 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
estark
felt, PTAL?
4 years, 4 months ago (2016-08-15 16:18:33 UTC) #7
felt
https://codereview.chromium.org/2244243002/diff/1/chrome/browser/ui/website_settings/website_settings.h File chrome/browser/ui/website_settings/website_settings.h (right): https://codereview.chromium.org/2244243002/diff/1/chrome/browser/ui/website_settings/website_settings.h#newcode41 chrome/browser/ui/website_settings/website_settings.h:41: SITE_CONNECTION_STATUS_INSECURE_CONTENT, // Non-secure passive content. nit: It is not ...
4 years, 4 months ago (2016-08-18 20:40:55 UTC) #9
estark
https://codereview.chromium.org/2244243002/diff/1/chrome/browser/ui/website_settings/website_settings.h File chrome/browser/ui/website_settings/website_settings.h (right): https://codereview.chromium.org/2244243002/diff/1/chrome/browser/ui/website_settings/website_settings.h#newcode41 chrome/browser/ui/website_settings/website_settings.h:41: SITE_CONNECTION_STATUS_INSECURE_CONTENT, // Non-secure passive content. On 2016/08/18 20:40:55, felt ...
4 years, 4 months ago (2016-08-19 12:55:50 UTC) #12
felt
lgtm
4 years, 4 months ago (2016-08-19 13:06:23 UTC) #13
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/2244243002/40001
4 years, 4 months ago (2016-08-19 18:18:59 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-19 18:24:26 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 18:28:02 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/00e83f13e0edc9bc0d3df45cf25f96fc55149b2b
Cr-Commit-Position: refs/heads/master@{#413190}

Powered by Google App Engine
This is Rietveld 408576698