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

Issue 1266713007: Net: Stop treating partial HTTP headers as a valid response. (Closed)

Created:
5 years, 4 months ago by mmenke
Modified:
5 years, 4 months ago
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

Net: Stop treating partial HTTP headers as a valid response. For now, we return ERR_RESPONSE_HEADERS_TRUNCATED in this case. Longer term, we probably want to get rid of the extra code to detect when this happens. Also do a bit of cleanup in HttpStreamParser's error handling code. BUG=472762 Committed: https://crrev.com/854d9c86cc897fdf55ea917d2aed2070e9235dac Cr-Commit-Position: refs/heads/master@{#341744}

Patch Set 1 #

Patch Set 2 : Fix tests #

Patch Set 3 : Fix more tests #

Patch Set 4 : Missed a test #

Patch Set 5 : Fix tests #

Total comments: 1

Patch Set 6 : Fix < 8-byte HTTP/0.9 responses over HTTPS #

Total comments: 7

Patch Set 7 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -125 lines) Patch
M chrome/browser/chrome_service_worker_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 4 chunks +33 lines, -38 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 2 3 4 5 6 2 chunks +30 lines, -39 lines 0 comments Download
M net/http/http_stream_parser_unittest.cc View 1 2 3 1 chunk +25 lines, -46 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
mmenke
Should we have a pool for how many bug reports this gets us, where people ...
5 years, 4 months ago (2015-07-31 19:11:00 UTC) #3
davidben
lgtm https://codereview.chromium.org/1266713007/diff/120001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (left): https://codereview.chromium.org/1266713007/diff/120001/chrome/browser/chrome_service_worker_browsertest.cc#oldcode83 chrome/browser/chrome_service_worker_browsertest.cc:83: "HTTP/1.1 200 OK\nContent-Type: text/javascript"); Ick. Why didn't they ...
5 years, 4 months ago (2015-07-31 21:32:50 UTC) #4
mmenke
[+thestig]: Please review chrome/browser/chrome_service_worker_browsertest.cc changes. They were accidentally relying on our parsing of partial HTTP ...
5 years, 4 months ago (2015-07-31 21:45:36 UTC) #7
Lei Zhang
jyasskin@ wrote the test, so lgtm if he's ok with it. Looks ok to me.
5 years, 4 months ago (2015-07-31 21:54:04 UTC) #9
mmenke
On 2015/07/31 21:54:04, Lei Zhang wrote: > jyasskin@ wrote the test, so lgtm if he's ...
5 years, 4 months ago (2015-08-03 15:20:08 UTC) #10
Jeffrey Yasskin
LGTM Would checking in the .mock-http-headers files have made this change easier to read or ...
5 years, 4 months ago (2015-08-04 15:57:37 UTC) #11
mmenke
On 2015/08/04 15:57:37, Jeffrey Yasskin wrote: > LGTM > > Would checking in the .mock-http-headers ...
5 years, 4 months ago (2015-08-04 16:01:24 UTC) #12
mmenke
Thanks for the reviews!
5 years, 4 months ago (2015-08-04 16:01:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1266713007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1266713007/160001
5 years, 4 months ago (2015-08-04 16:02:14 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/86079)
5 years, 4 months ago (2015-08-04 17:04:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1266713007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1266713007/160001
5 years, 4 months ago (2015-08-04 17:07:27 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 4 months ago (2015-08-04 17:44:02 UTC) #21
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/854d9c86cc897fdf55ea917d2aed2070e9235dac Cr-Commit-Position: refs/heads/master@{#341744}
5 years, 4 months ago (2015-08-04 17:44:51 UTC) #22
Zhenyao Mo
5 years, 4 months ago (2015-08-04 22:07:46 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:160001) has been created in
https://codereview.chromium.org/1255123006/ by zmo@chromium.org.

The reason for reverting is: Might broke
http/tests/security/XFrameOptions/x-frame-options-cached.html
http/tests/security/contentSecurityPolicy/cached-frame-csp.html
http/tests/security/xssAuditor/cached-frame.html on windows blink bots.

Powered by Google App Engine
This is Rietveld 408576698