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

Issue 1008873006: [net] Remove logic for fixing up Gzip encoding type for downloads. (Closed)

Created:
5 years, 9 months ago by asanka
Modified:
5 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, servolk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[net] Remove logic for fixing up Gzip encoding type for downloads. Some servers incorrectly send 'Content-Encoding: gzip' for responses that should be downloaded as gzipped files. UMA indicates that the number of servers that exhibit this incorrect behavior is vanishingly small. Hence the network stack will no longer perform this encoding fixup. What an embedder of the network stack does with a response often depends on the response headers and the capabilities of the embedder. The current implementation was based on an inaccurate prediction of the inteded disposition of the response. In addition to the inaccuracy, the implementation was also becoming a maintenance burden. With this change, resources downloaded with the incorrect Content-Encoding will be saved uncompressed. BUG=318217 Committed: https://crrev.com/87b5f2ece37da37ef0b0a04da9aee538ef0f9c4b Cr-Commit-Position: refs/heads/master@{#321890}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Remove comment #

Patch Set 3 : Add a basic test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -461 lines) Patch
M net/base/filename_util_internal.h View 1 chunk +1 line, -2 lines 0 comments Download
D net/base/filename_util_unsafe.h View 1 chunk +0 lines, -30 lines 0 comments Download
D net/base/filename_util_unsafe.cc View 1 chunk +0 lines, -51 lines 0 comments Download
M net/filter/filter.h View 1 chunk +0 lines, -7 lines 0 comments Download
M net/filter/filter.cc View 1 4 chunks +0 lines, -86 lines 0 comments Download
M net/filter/filter_unittest.cc View 1 2 2 chunks +4 lines, -242 lines 0 comments Download
M net/filter/mock_filter_context.h View 3 chunks +0 lines, -13 lines 0 comments Download
M net/filter/mock_filter_context.cc View 3 chunks +0 lines, -10 lines 0 comments Download
M net/net.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 3 chunks +0 lines, -13 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
asanka
This is based on the Net.GzipEncodingFixupResult histogram. If you feel this might cause unnecessary grief, ...
5 years, 9 months ago (2015-03-18 15:41:33 UTC) #4
Randy Smith (Not in Mondays)
Hmmm. Let me make explicit the argument I think you're making, in pieces, so that ...
5 years, 9 months ago (2015-03-18 17:44:14 UTC) #5
Ryan Sleevi
LGTM, with an added caveat of maybe even nuking the comment. I gave Pat and ...
5 years, 9 months ago (2015-03-19 02:55:06 UTC) #6
Randy Smith (Not in Mondays)
https://codereview.chromium.org/1008873006/diff/40001/net/filter/filter.cc File net/filter/filter.cc (right): https://codereview.chromium.org/1008873006/diff/40001/net/filter/filter.cc#newcode215 net/filter/filter.cc:215: // downloads. On 2015/03/19 02:55:06, Ryan Sleevi wrote: > ...
5 years, 9 months ago (2015-03-19 15:01:06 UTC) #7
Randy Smith (Not in Mondays)
On 2015/03/19 15:01:06, rdsmith wrote: > https://codereview.chromium.org/1008873006/diff/40001/net/filter/filter.cc > File net/filter/filter.cc (right): > > https://codereview.chromium.org/1008873006/diff/40001/net/filter/filter.cc#newcode215 > ...
5 years, 9 months ago (2015-03-19 15:02:22 UTC) #8
asanka
Thanks for the reviews. I'll wait until you are comfortable with the review coverage. The ...
5 years, 9 months ago (2015-03-19 20:27:52 UTC) #9
Randy Smith (Not in Mondays)
Wow, that was bracing; lots of ugly code removed. Review complete, LGTM++.
5 years, 9 months ago (2015-03-23 15:37:22 UTC) #10
asanka
On 2015/03/23 15:37:22, rdsmith wrote: > Wow, that was bracing; lots of ugly code removed. ...
5 years, 9 months ago (2015-03-23 15:43:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1008873006/80001
5 years, 9 months ago (2015-03-23 15:44:16 UTC) #14
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/51311)
5 years, 9 months ago (2015-03-23 15:51:28 UTC) #16
asanka
Whoops. Needs review for the histogram changes. +isherman : histograms pls.
5 years, 9 months ago (2015-03-23 15:55:08 UTC) #18
Ilya Sherman
histograms.xml LGTM
5 years, 9 months ago (2015-03-23 22:11:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1008873006/80001
5 years, 9 months ago (2015-03-23 22:16:04 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 9 months ago (2015-03-23 23:14:13 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 23:14:59 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/87b5f2ece37da37ef0b0a04da9aee538ef0f9c4b
Cr-Commit-Position: refs/heads/master@{#321890}

Powered by Google App Engine
This is Rietveld 408576698