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

Issue 2451233002: Make request fail with ERR_CONTENT_DECODING_INIT_FAILED if sdch is not supported (Closed)

Created:
4 years, 1 month ago by xunjieli
Modified:
4 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make request fail with ERR_CONTENT_DECODING_INIT_FAILED if sdch is not supported When server sends us a sdch encoded response, but we never advertised sdch support, this CL makes SetUpSourceStream return null so that the request is failed with ERR_CONTENT_DECODING_INIT_FAILED. This old behavior in net::Filter passes through the raw content without generating an error. BUG=659363 Committed: https://crrev.com/9a328c6cd891d02c535c997abd330a05e10e2398 Cr-Commit-Position: refs/heads/master@{#427815}

Patch Set 1 : self review #

Total comments: 2

Patch Set 2 : Address Matt's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -9 lines) Patch
M net/filter/sdch_policy_delegate.cc View 1 chunk +3 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 chunk +10 lines, -8 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
xunjieli
Randy, Matt: PTAL. The new behavior is slightly different than the old one. In the ...
4 years, 1 month ago (2016-10-26 16:35:49 UTC) #4
mmenke
https://codereview.chromium.org/2451233002/diff/20001/net/url_request/url_request_http_job_unittest.cc File net/url_request/url_request_http_job_unittest.cc (right): https://codereview.chromium.org/2451233002/diff/20001/net/url_request/url_request_http_job_unittest.cc#newcode164 net/url_request/url_request_http_job_unittest.cc:164: SdchNotAdvertisedGotMalformedSdchResponse) { Maybe add: // This test expects TestURLRequestContexts ...
4 years, 1 month ago (2016-10-26 16:45:43 UTC) #5
xunjieli
https://codereview.chromium.org/2451233002/diff/20001/net/url_request/url_request_http_job_unittest.cc File net/url_request/url_request_http_job_unittest.cc (right): https://codereview.chromium.org/2451233002/diff/20001/net/url_request/url_request_http_job_unittest.cc#newcode164 net/url_request/url_request_http_job_unittest.cc:164: SdchNotAdvertisedGotMalformedSdchResponse) { On 2016/10/26 16:45:43, mmenke wrote: > Maybe ...
4 years, 1 month ago (2016-10-26 16:49:22 UTC) #6
mmenke
LGTM
4 years, 1 month ago (2016-10-26 17:29:47 UTC) #7
Randy Smith (Not in Mondays)
I'd like to make sure the CL description describes clearly the user-visible change, to make ...
4 years, 1 month ago (2016-10-26 17:35:20 UTC) #8
Randy Smith (Not in Mondays)
LGTM modulo CL description clearly describing the change in behavior (both old and new behavior) ...
4 years, 1 month ago (2016-10-26 17:36:49 UTC) #9
xunjieli
On 2016/10/26 17:36:49, Randy Smith - Not in Mondays wrote: > LGTM modulo CL description ...
4 years, 1 month ago (2016-10-26 17:46:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451233002/40001
4 years, 1 month ago (2016-10-26 19:03:27 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 1 month ago (2016-10-26 21:38:47 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 21:42:20 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9a328c6cd891d02c535c997abd330a05e10e2398
Cr-Commit-Position: refs/heads/master@{#427815}

Powered by Google App Engine
This is Rietveld 408576698