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

Issue 1126413006: Temporary fix to prevent the DRP from being activated improperly. (Closed)

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

Temporary fix to prevent the DRP from being activated improperly. This change prevents any *.googlezip.net Data Reduction Proxy from being configured as part of the ProxyService's ProxyConfig via the proxy pref. Specifying a DRP in the proxy rules is not a supported means of activating the DRP, and could cause requests to be sent to the DRP without the appropriate authentication headers and without using any of the DRP bypass logic. This is a fix for http://crbug.com/476610, to be merged into M43. BUG=476610 Committed: https://crrev.com/7e18b89c1fe52bfc7868dc3ded772e81f404b3c4 Cr-Commit-Position: refs/heads/master@{#329349}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed comments and added bypass logic enforcement if the DRP via header is present #

Total comments: 4

Patch Set 3 : Addressed comments #

Patch Set 4 : Moved workaround to pref_proxy_config_tracker_impl, and split out drp_bypass_protocol change to a d… #

Patch Set 5 : Fixed comment #

Total comments: 10

Patch Set 6 : Addressed comments #

Total comments: 4

Patch Set 7 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -9 lines) Patch
M chrome/browser/net/pref_proxy_config_tracker_impl.cc View 1 2 3 4 5 6 3 chunks +79 lines, -9 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc View 1 2 3 3 chunks +74 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
sclittle
PTAL - I'd like to land this ASAP in time for the last M43 beta ...
5 years, 7 months ago (2015-05-09 05:00:20 UTC) #2
bengr
We might also want to support bypass instructions on non-incognito even when Chrome doesn't recognize ...
5 years, 7 months ago (2015-05-10 16:49:35 UTC) #3
Not at Google. Contact bengr
https://codereview.chromium.org/1126413006/diff/1/net/proxy/proxy_service.cc File net/proxy/proxy_service.cc (right): https://codereview.chromium.org/1126413006/diff/1/net/proxy/proxy_service.cc#newcode357 net/proxy/proxy_service.cc:357: // Removes any Data Reduction Proxies like *.googlezip.net from ...
5 years, 7 months ago (2015-05-11 17:24:09 UTC) #5
sclittle
https://codereview.chromium.org/1126413006/diff/1/net/proxy/proxy_service.cc File net/proxy/proxy_service.cc (right): https://codereview.chromium.org/1126413006/diff/1/net/proxy/proxy_service.cc#newcode357 net/proxy/proxy_service.cc:357: // Removes any Data Reduction Proxies like *.googlezip.net from ...
5 years, 7 months ago (2015-05-11 20:43:36 UTC) #7
bengr
lgtm modulo nits. https://codereview.chromium.org/1126413006/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc (right): https://codereview.chromium.org/1126413006/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc#newcode101 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc:101: if (HasDataReductionProxyViaHeader(response_headers, nullptr)) { Negate this ...
5 years, 7 months ago (2015-05-11 20:51:36 UTC) #8
sclittle
https://codereview.chromium.org/1126413006/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc (right): https://codereview.chromium.org/1126413006/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc#newcode101 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc:101: if (HasDataReductionProxyViaHeader(response_headers, nullptr)) { On 2015/05/11 20:51:35, bengr wrote: ...
5 years, 7 months ago (2015-05-11 20:56:37 UTC) #9
sclittle
On 2015/05/11 20:56:37, sclittle wrote: > https://codereview.chromium.org/1126413006/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc > File > components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc > (right): > > ...
5 years, 7 months ago (2015-05-11 21:17:38 UTC) #13
eroman
This layering is wrong, why are we checking for .googlezip.net in //net? I am also ...
5 years, 7 months ago (2015-05-11 21:34:29 UTC) #14
eroman
FTR we discussed an alternate place to put this fix being in src/chrome/browser/net/pref_proxy_config_tracker_impl.cc, which I ...
5 years, 7 months ago (2015-05-11 22:19:30 UTC) #15
sclittle
I've moved the fix to src/chrome/browser/net/pref_proxy_config_tracker_impl.cc. PTAL
5 years, 7 months ago (2015-05-12 00:00:56 UTC) #16
eroman
https://codereview.chromium.org/1126413006/diff/100001/chrome/browser/net/pref_proxy_config_tracker_impl.cc File chrome/browser/net/pref_proxy_config_tracker_impl.cc (right): https://codereview.chromium.org/1126413006/diff/100001/chrome/browser/net/pref_proxy_config_tracker_impl.cc#newcode26 chrome/browser/net/pref_proxy_config_tracker_impl.cc:26: // Removes any Data Reduction Proxies like *.googlezip.net from ...
5 years, 7 months ago (2015-05-12 00:43:02 UTC) #17
sclittle
https://codereview.chromium.org/1126413006/diff/100001/chrome/browser/net/pref_proxy_config_tracker_impl.cc File chrome/browser/net/pref_proxy_config_tracker_impl.cc (right): https://codereview.chromium.org/1126413006/diff/100001/chrome/browser/net/pref_proxy_config_tracker_impl.cc#newcode26 chrome/browser/net/pref_proxy_config_tracker_impl.cc:26: // Removes any Data Reduction Proxies like *.googlezip.net from ...
5 years, 7 months ago (2015-05-12 01:13:59 UTC) #18
eroman
LGTM. Although not sure I understand the meaning of "hotfix" in the description. https://codereview.chromium.org/1126413006/diff/120001/chrome/browser/net/pref_proxy_config_tracker_impl.cc File ...
5 years, 7 months ago (2015-05-12 03:13:53 UTC) #19
sclittle
I've replaced my usage of the term "hotfix" with "temporary fix". Thanks a ton for ...
5 years, 7 months ago (2015-05-12 03:30:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126413006/140001
5 years, 7 months ago (2015-05-12 03:33:34 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 7 months ago (2015-05-12 04:31:07 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 04:32:03 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7e18b89c1fe52bfc7868dc3ded772e81f404b3c4
Cr-Commit-Position: refs/heads/master@{#329349}

Powered by Google App Engine
This is Rietveld 408576698