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

Issue 887223005: Skip interstitials and don't block requests for localhost SSL errors (Closed)

Created:
5 years, 10 months ago by estark
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Skip interstitials and don't block requests for localhost SSL errors For now this behavior is behind a flag, because there are some weird cases where localhost certificate errors could indicate a real security problem (see https://code.google.com/p/chromium/issues/detail?id=282927 for more detail). BUG=282927 TEST=Set up HTTPS server on localhost with a bad certificate, visit https://localhost and observe no interstitial Committed: https://crrev.com/4b003b337d81dc88d4c16f5d5751cfff8064c9bf Cr-Commit-Position: refs/heads/master@{#316347}

Patch Set 1 #

Patch Set 2 : Tweaked flag placement and added histograms.xml entry #

Total comments: 2

Patch Set 3 : addressed Adrienne's comments #

Patch Set 4 : Added warning in console on localhost SSL errors #

Total comments: 10

Patch Set 5 : fixes from previous round of feedback #

Total comments: 16

Patch Set 6 : latest round from jww and sleevi #

Total comments: 3

Patch Set 7 : Move console warning to chrome/ from content/ #

Patch Set 8 : oops, this one includes the whole diff, not just part of it #

Total comments: 2

Patch Set 9 : Move kAllowInsecureLocalhost switch into chrome/ #

Patch Set 10 : Remove unnecessary #include #

Total comments: 2

Patch Set 11 : relocated DidFinishDocumentLoad override #

Patch Set 12 : rebase #

Patch Set 13 : add license to test script #

Patch Set 14 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -67 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc View 1 2 3 4 5 6 7 8 39 chunks +124 lines, -61 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -0 lines 0 comments Download
A chrome/test/data/ssl/page_with_subresource.html View 7 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/ssl/write_to_title.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 62 (17 generated)
estark
A few questions/notes I have: * I'm not sure if what I did was sufficient ...
5 years, 10 months ago (2015-02-02 22:19:14 UTC) #2
estark
Oh, by the way! This is obviously just the first part of the change; the ...
5 years, 10 months ago (2015-02-02 22:21:09 UTC) #3
estark
5 years, 10 months ago (2015-02-02 22:36:00 UTC) #4
felt
On 2015/02/02 22:19:14, emily wrote: > A few questions/notes I have: > * I'm not ...
5 years, 10 months ago (2015-02-03 06:23:08 UTC) #5
felt
https://codereview.chromium.org/887223005/diff/20001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/20001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode330 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:330: // We always let certificate errors on localhost through; ...
5 years, 10 months ago (2015-02-03 06:23:17 UTC) #6
estark
addressed Adrienne's comments and adding rsleevi as a reviewer
5 years, 10 months ago (2015-02-03 18:31:12 UTC) #8
felt
On 2015/02/03 18:31:12, emily wrote: > addressed Adrienne's comments and adding rsleevi as a reviewer ...
5 years, 10 months ago (2015-02-03 22:38:04 UTC) #9
estark
aha, thanks Adrienne https://codereview.chromium.org/887223005/diff/20001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/20001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode330 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:330: // We always let certificate errors ...
5 years, 10 months ago (2015-02-03 22:42:09 UTC) #10
estark
5 years, 10 months ago (2015-02-04 02:00:54 UTC) #11
felt
https://codereview.chromium.org/887223005/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode335 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:335: if (allowLocalhost && url.DomainIs("localhost")) { will it always be ...
5 years, 10 months ago (2015-02-04 08:06:54 UTC) #12
estark
On 2015/02/04 08:06:54, felt wrote: > will it always be normalized to "localhost"? what about ...
5 years, 10 months ago (2015-02-04 16:17:48 UTC) #13
Ryan Sleevi
On 2015/02/04 16:17:48, emily wrote: > What do you think of modifying net::isLocalhost to check ...
5 years, 10 months ago (2015-02-04 19:15:52 UTC) #14
Ryan Sleevi
Mostly LG, but I need to dig through source archaeology on the localhost issue for ...
5 years, 10 months ago (2015-02-04 19:34:42 UTC) #15
estark
On 2015/02/04 19:15:52, Ryan Sleevi wrote: > I would say let's leave .localhost treatment as ...
5 years, 10 months ago (2015-02-05 02:54:41 UTC) #16
Ryan Sleevi
On 2015/02/05 02:54:41, emily wrote: > Okay, that sounds good to me (and done in ...
5 years, 10 months ago (2015-02-05 02:55:03 UTC) #17
estark
https://codereview.chromium.org/887223005/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode333 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:333: bool allowLocalhost = base::CommandLine::ForCurrentProcess()-> On 2015/02/04 19:34:41, Ryan Sleevi ...
5 years, 10 months ago (2015-02-05 03:02:38 UTC) #18
estark
I'm not sure what's up with these trybot failures. Maybe it's wishful thinking but they ...
5 years, 10 months ago (2015-02-05 22:51:33 UTC) #19
felt
On 2015/02/05 22:51:33, emily wrote: > I'm not sure what's up with these trybot failures. ...
5 years, 10 months ago (2015-02-06 08:20:30 UTC) #20
estark
On 2015/02/06 08:20:30, felt wrote: > On 2015/02/05 22:51:33, emily wrote: > > I'm not ...
5 years, 10 months ago (2015-02-09 17:19:02 UTC) #21
felt
lgtm now, but wait for ryan's approval too :)
5 years, 10 months ago (2015-02-09 17:31:47 UTC) #22
jww
lgtm, too, modulo my two comments. https://codereview.chromium.org/887223005/diff/80001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/80001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode335 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:335: bool allow_localhost = ...
5 years, 10 months ago (2015-02-09 19:29:39 UTC) #23
Ryan Sleevi
LGTM % a few nits https://codereview.chromium.org/887223005/diff/80001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/80001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode339 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:339: } Note: Consistent with ...
5 years, 10 months ago (2015-02-09 19:31:34 UTC) #24
estark
https://codereview.chromium.org/887223005/diff/80001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/887223005/diff/80001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode335 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:335: bool allow_localhost = base::CommandLine::ForCurrentProcess()-> On 2015/02/09 19:29:38, jww wrote: ...
5 years, 10 months ago (2015-02-09 20:48:40 UTC) #26
estark
Is the next step here to make sure there's a LGTM from an OWNER of ...
5 years, 10 months ago (2015-02-10 23:39:31 UTC) #27
Ryan Sleevi
On 2015/02/10 23:39:31, emily wrote: > Is the next step here to make sure there's ...
5 years, 10 months ago (2015-02-10 23:57:41 UTC) #28
estark
davidben@chromium.org: Hi! Could you please review changes in content/? mpearson@chromium.org: Could you please review the ...
5 years, 10 months ago (2015-02-11 01:14:43 UTC) #30
davidben
https://codereview.chromium.org/887223005/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/887223005/diff/100001/content/renderer/render_frame_impl.cc#newcode2745 content/renderer/render_frame_impl.cc:2745: // before going to production. This only pays attention ...
5 years, 10 months ago (2015-02-11 04:13:14 UTC) #31
Mark P
On 2015/02/11 01:14:43, emily wrote: > mailto:mpearson@chromium.org: Could you please review the change to histograms.xml? ...
5 years, 10 months ago (2015-02-11 18:48:46 UTC) #32
estark
On 2015/02/11 18:48:46, Mark P wrote: > On 2015/02/11 01:14:43, emily wrote: > > mailto:mpearson@chromium.org: ...
5 years, 10 months ago (2015-02-11 18:52:03 UTC) #33
estark
https://codereview.chromium.org/887223005/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/887223005/diff/100001/content/renderer/render_frame_impl.cc#newcode2745 content/renderer/render_frame_impl.cc:2745: // before going to production. On 2015/02/11 04:13:14, David ...
5 years, 10 months ago (2015-02-11 18:54:42 UTC) #34
Mark P
histograms.xml lgtm
5 years, 10 months ago (2015-02-11 19:18:38 UTC) #35
davidben
LGTM with one comment on command-line switch forwarding. https://codereview.chromium.org/887223005/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/887223005/diff/100001/content/renderer/render_frame_impl.cc#newcode2745 content/renderer/render_frame_impl.cc:2745: // ...
5 years, 10 months ago (2015-02-11 19:41:35 UTC) #36
estark
https://codereview.chromium.org/887223005/diff/140001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/887223005/diff/140001/content/browser/renderer_host/render_process_host_impl.cc#newcode1190 content/browser/renderer_host/render_process_host_impl.cc:1190: switches::kAllowInsecureLocalhost, On 2015/02/11 19:41:35, David Benjamin wrote: > We ...
5 years, 10 months ago (2015-02-11 21:53:34 UTC) #38
estark
sky@chromium.org: Could you please review changes in chrome/renderer/? Thank you!
5 years, 10 months ago (2015-02-11 21:54:19 UTC) #40
sky
LGTM https://codereview.chromium.org/887223005/diff/180001/chrome/renderer/chrome_render_frame_observer.h File chrome/renderer/chrome_render_frame_observer.h (right): https://codereview.chromium.org/887223005/diff/180001/chrome/renderer/chrome_render_frame_observer.h#newcode33 chrome/renderer/chrome_render_frame_observer.h:33: void DidFinishDocumentLoad() override; overrides should be grouped with ...
5 years, 10 months ago (2015-02-12 00:15:48 UTC) #41
estark
https://codereview.chromium.org/887223005/diff/180001/chrome/renderer/chrome_render_frame_observer.h File chrome/renderer/chrome_render_frame_observer.h (right): https://codereview.chromium.org/887223005/diff/180001/chrome/renderer/chrome_render_frame_observer.h#newcode33 chrome/renderer/chrome_render_frame_observer.h:33: void DidFinishDocumentLoad() override; On 2015/02/12 00:15:47, sky wrote: > ...
5 years, 10 months ago (2015-02-12 00:24:55 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887223005/200001
5 years, 10 months ago (2015-02-13 22:43:56 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/10879)
5 years, 10 months ago (2015-02-13 22:47:39 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887223005/220001
5 years, 10 months ago (2015-02-13 22:54:43 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/42753)
5 years, 10 months ago (2015-02-13 23:02:23 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887223005/240001
5 years, 10 months ago (2015-02-13 23:10:39 UTC) #55
commit-bot: I haz the power
Failed to apply patch for chrome/browser/about_flags.cc: While running git apply --index -3 -p1; error: patch ...
5 years, 10 months ago (2015-02-14 00:04:40 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887223005/260001
5 years, 10 months ago (2015-02-14 00:09:43 UTC) #60
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 10 months ago (2015-02-14 01:07:24 UTC) #61
commit-bot: I haz the power
5 years, 10 months ago (2015-02-14 01:08:06 UTC) #62
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/4b003b337d81dc88d4c16f5d5751cfff8064c9bf
Cr-Commit-Position: refs/heads/master@{#316347}

Powered by Google App Engine
This is Rietveld 408576698