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

Issue 2026863002: Disable AltSvc from insecure origin. (Closed)

Created:
4 years, 6 months ago by Bence
Modified:
4 years, 6 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable AltSvc from insecure origin. * Do not parse Alt-Svc response on insecure connections, add regression test. * Do not follow in-memory Alt-Svc on insecure connections, add regression test. This CL has a shortcut: |enable_alt_svc_for_insecure_origin|, which is false in production but true in tests (except for the two regression tests). Adapting the existing tests is a lot of work, that will come in one or more follow-up CLs. BUG=615497 Committed: https://crrev.com/e3dd56f4d98843611954b84fa28c1e884594fd05 Cr-Commit-Position: refs/heads/master@{#397097}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -2 lines) Patch
M net/http/http_network_session.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 2 chunks +100 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 chunk +4 lines, -0 lines 2 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 chunk +1 line, -0 lines 2 comments Download
M net/spdy/spdy_test_util_common.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Bence
Ryan: PTAL. Thank you.
4 years, 6 months ago (2016-05-31 20:57:56 UTC) #2
Ryan Hamilton
lgtm https://codereview.chromium.org/2026863002/diff/1/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2026863002/diff/1/net/http/http_stream_factory_impl.cc#newcode221 net/http/http_stream_factory_impl.cc:221: !original_url.SchemeIs("https")) nit: I think this should probably have ...
4 years, 6 months ago (2016-05-31 23:43:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2026863002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2026863002/1
4 years, 6 months ago (2016-06-01 10:33:36 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-01 10:37:29 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/e3dd56f4d98843611954b84fa28c1e884594fd05 Cr-Commit-Position: refs/heads/master@{#397097}
4 years, 6 months ago (2016-06-01 10:39:15 UTC) #8
Bence
4 years, 6 months ago (2016-06-01 10:54:38 UTC) #9
Message was sent while issue was closed.
Thank you.

https://codereview.chromium.org/2026863002/diff/1/net/http/http_stream_factor...
File net/http/http_stream_factory_impl.cc (right):

https://codereview.chromium.org/2026863002/diff/1/net/http/http_stream_factor...
net/http/http_stream_factory_impl.cc:221: !original_url.SchemeIs("https"))
On 2016/05/31 23:43:42, Ryan Hamilton wrote:
> nit: I think this should probably have {}s since the if is more than one line.

Sorry, I missed this.  Will do in a follow-up.

https://codereview.chromium.org/2026863002/diff/1/net/quic/quic_network_trans...
File net/quic/quic_network_transaction_unittest.cc (right):

https://codereview.chromium.org/2026863002/diff/1/net/quic/quic_network_trans...
net/quic/quic_network_transaction_unittest.cc:266:
params_.enable_alternative_service_for_insecure_origins = true;
On 2016/05/31 23:43:42, Ryan Hamilton wrote:
> I'm surprised we have any of these left since I thought we didn't support
> insecure quic.

It's only SetAlternativeServicesWithScheme, should be easy to fix.

Powered by Google App Engine
This is Rietveld 408576698