diff options
author | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-16 23:19:34 +0000 |
---|---|---|
committer | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-16 23:19:34 +0000 |
commit | 608a1ee877776d5c4c0c239c2ab1867a1a7c61b3 (patch) | |
tree | 2a3bdb35143bd76a9998e889dea7c7b1cc8d90fa /chrome/browser | |
parent | bb100cb03f67173a17124527bfd899ff607db361 (diff) | |
download | chromium_src-608a1ee877776d5c4c0c239c2ab1867a1a7c61b3.zip chromium_src-608a1ee877776d5c4c0c239c2ab1867a1a7c61b3.tar.gz chromium_src-608a1ee877776d5c4c0c239c2ab1867a1a7c61b3.tar.bz2 |
Always block the request for a sub-resource with an
SSL certificate error.
R=abarth,jcampan
BUG=2316
Review URL: http://codereview.chromium.org/3091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/ssl_policy.cc | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/chrome/browser/ssl_policy.cc b/chrome/browser/ssl_policy.cc index dbcfb75..d75b895 100644 --- a/chrome/browser/ssl_policy.cc +++ b/chrome/browser/ssl_policy.cc @@ -284,20 +284,11 @@ class DefaultPolicy : public SSLPolicy { // page is shown to the user every time he comes back to the page. case net::X509Certificate::Policy::UNKNOWN: if (error->resource_type() != ResourceType::MAIN_FRAME) { - if (main_frame_url.SchemeIsSecure() && - !error->manager()->CanShowInsecureContent(main_frame_url)) { - error->manager()->ShowMessageWithLink( - l10n_util::GetString(IDS_SSL_INFO_BAR_FILTERED_CONTENT), - l10n_util::GetString(IDS_SSL_INFO_BAR_SHOW_CONTENT), - new ShowUnsafeContentTask(main_frame_url, error)); - error->DenyRequest(); - } else { - // TODO(jcampan): if we get a bad HTTPS resource from a secure - // frame in an insecure page, it might compromise any other page - // from the secure frame domain, we should change their style to - // insecure, or just filter the resource and show an info-bar. - error->ContinueRequest(); - } + // A sub-resource has a certificate error. The user doesn't really + // have a context for making the right decision, so block the + // request hard, without an info bar to allow showing the insecure + // content. + error->DenyRequest(); break; } // We don't know how to handle this error. Ask our sub-policies. |