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

Issue 7976036: net: make HSTS hosts use the normal SSL interstitials (Closed)

Created:
9 years, 3 months ago by agl
Modified:
9 years, 2 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, dpranke+watch-content_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

net: make HSTS hosts use the normal SSL interstitials SSL interstitials have better translations for the error messages and this returns us to the point where we have only a single UI for SSL errors, which will make some future changes easier. First, this change changes the SSL error callbacks to take an SSLInfo& rather than a X509Certificate* (which was already a TODO(wtc) in the code). Most of this change is the resulting plumbing. It also adds a |is_hsts_host| flag to the callbacks to denote an HSTS host. Finally, in ssl_policy.cc the |is_hsts_host| flag causes any error to be fatal. BUG=93527 TEST=none

Patch Set 1 #

Patch Set 2 : ... #

Total comments: 12

Patch Set 3 : ... #

Patch Set 4 : ... #

Total comments: 5

Patch Set 5 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -92 lines) Patch
M content/browser/renderer_host/resource_dispatcher_host.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/ssl/ssl_cert_error_handler.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/ssl/ssl_cert_error_handler.cc View 1 2 3 4 1 chunk +6 lines, -8 lines 0 comments Download
M content/browser/ssl/ssl_manager.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher_impl.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 2 chunks +10 lines, -26 lines 0 comments Download
M net/url_request/url_request_job.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M net/url_request/url_request_job.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/fileapi/file_writer_delegate.h View 1 2 3 4 1 chunk +13 lines, -9 lines 0 comments Download
M webkit/fileapi/file_writer_delegate.cc View 1 2 1 chunk +10 lines, -7 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
agl
9 years, 3 months ago (2011-09-21 21:08:23 UTC) #1
wtc
Review comments on Patch Set 2: High-level comments: 1. I suggest removing the "int cert_error" ...
9 years, 3 months ago (2011-09-23 00:04:51 UTC) #2
agl
Have removed the |cert_result| parameter and made |must_be_fatal| into |is_hsts_host|. The logic around whether they ...
9 years, 3 months ago (2011-09-23 18:45:38 UTC) #3
wtc
LGTM on Patch Set 4. Thanks! Please update the CL's commit message before you check ...
9 years, 2 months ago (2011-09-26 19:15:09 UTC) #4
wtc
9 years, 2 months ago (2011-09-26 19:18:48 UTC) #5
http://codereview.chromium.org/7976036/diff/21/content/browser/ssl/ssl_cert_e...
File content/browser/ssl/ssl_cert_error_handler.cc (left):

http://codereview.chromium.org/7976036/diff/21/content/browser/ssl/ssl_cert_e...
content/browser/ssl/ssl_cert_error_handler.cc:24:
ssl_info_.SetCertError(cert_error);
On 2011/09/23 18:45:38, agl wrote:
>
> ssl_info.security_bits has the value that you would expect (i.e. 128 for most
> sites).

That should be fine.  Could be considered an improvement :-)

Powered by Google App Engine
This is Rietveld 408576698