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

Issue 2226523002: Add separate plumbing for subresources with certificate errors (Closed)

Created:
4 years, 4 months ago by estark
Modified:
4 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add separate plumbing for subresources with certificate errors Previously, when subresources were loaded over connections with certificate errors, WebContents treated them the same as mixed content (subresources loaded over HTTP). While this sort of approximately worked for a while, it was messy and is starting to create problems. For example, once WebContents is notified that insecure resources have been loaded, it notifies DevTools to update the security panel -- but by that point, we had lost information about whether the insecure resource was mixed content or broken HTTPS, so DevTools can't distinguish them in the UI. There was also an ugly hack in place to stop the renderer from notifying the browser about same-origin broken HTTPS subresources, to stop the browser from marking a page as mixed content after clicking through an interstitial. That hack was removed in https://codereview.chromium.org/2191113002 which means that all pages with certificate errors get marked as having mixed content now if they load subresources. This CL creates plumbing for certificate error subresources that is parallel to the mixed content plumbing, and uses that now instead of reusing the mixed content plumbing. At the moment, cert error subresources only affect the lock icon, but follow-up CLs will adapt WebsiteSettings and DevTools to describe when the page has loaded content with certificate errors. BUG=634171

Patch Set 1 #

Patch Set 2 : update content browser tests #

Patch Set 3 : android build fixes #

Patch Set 4 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -55 lines) Patch
M android_webview/browser/aw_ssl_host_state_delegate.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M android_webview/browser/aw_ssl_host_state_delegate.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.h View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 4 chunks +33 lines, -22 lines 0 comments Download
M components/security_state/security_state_model.h View 3 chunks +17 lines, -0 lines 0 comments Download
M components/security_state/security_state_model.cc View 1 2 3 8 chunks +45 lines, -9 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/ssl/ssl_manager.h View 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_policy.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_policy.cc View 3 chunks +33 lines, -2 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 5 chunks +9 lines, -2 lines 0 comments Download
M content/public/browser/ssl_host_state_delegate.h View 1 chunk +12 lines, -2 lines 0 comments Download
M content/public/browser/web_contents.h View 1 chunk +6 lines, -1 line 0 comments Download
M content/public/common/ssl_status.h View 1 chunk +12 lines, -7 lines 0 comments Download
M content/test/mock_ssl_host_state_delegate.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/mock_ssl_host_state_delegate.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (18 generated)
estark
jam: this CL should start to address the ssl_browser_test.cc TODOs you added for me in ...
4 years, 4 months ago (2016-08-09 00:04:22 UTC) #18
estark
4 years, 4 months ago (2016-08-09 00:49:47 UTC) #20
Actually, sorry, this CL is too huge and disgusting and under-tested. I'm going
to close it out and break it up into a few separate ones, so need to review this
yet.

Powered by Google App Engine
This is Rietveld 408576698