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

Issue 572273002: Move handling of invalid referrer to the network delegate (Closed)

Created:
6 years, 3 months ago by jochen (gone - plz use gerrit)
Modified:
6 years, 3 months ago
Reviewers:
mef, mmenke, nasko
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move handling of invalid referrer to the network delegate We now always abort invalid loads. According to UMA, they don't happen anymore, so this should only affect future bugs. Also, move the UMA reporting to the right thread. BUG=none R=mmenke@chromium.org,mef@chromium.org,nasko@chromium.org Committed: https://crrev.com/0e3b3a6c53b408ea11cdab0a46d12ea905782821 Cr-Commit-Position: refs/heads/master@{#295107}

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 5

Patch Set 3 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -8 lines) Patch
M chrome/browser/net/chrome_network_delegate.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M net/base/network_delegate.h View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 2 chunks +15 lines, -7 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
jochen (gone - plz use gerrit)
ptal Mark, everything Misha, Nasko: fyi
6 years, 3 months ago (2014-09-16 13:18:12 UTC) #1
jochen (gone - plz use gerrit)
sorry, got the reviewer list wrong Matt, please review everything :)
6 years, 3 months ago (2014-09-16 13:37:44 UTC) #3
mmenke
This looks reasonable to me, just wonder about naming. https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc#newcode694 net/url_request/url_request.cc:694: ...
6 years, 3 months ago (2014-09-16 15:05:42 UTC) #4
mmenke
https://codereview.chromium.org/572273002/diff/20001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/572273002/diff/20001/chrome/browser/net/chrome_network_delegate.cc#newcode827 chrome/browser/net/chrome_network_delegate.cc:827: return false; Should we only do this for RDH-tracked ...
6 years, 3 months ago (2014-09-16 15:53:57 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc#newcode694 net/url_request/url_request.cc:694: network_delegate_->CanCorrectInvalidReferrerHeader( On 2014/09/16 15:05:42, mmenke wrote: > I think ...
6 years, 3 months ago (2014-09-16 16:27:57 UTC) #6
jochen (gone - plz use gerrit)
On 2014/09/16 at 15:53:57, mmenke wrote: > https://codereview.chromium.org/572273002/diff/20001/chrome/browser/net/chrome_network_delegate.cc > File chrome/browser/net/chrome_network_delegate.cc (right): > > https://codereview.chromium.org/572273002/diff/20001/chrome/browser/net/chrome_network_delegate.cc#newcode827 ...
6 years, 3 months ago (2014-09-16 16:28:49 UTC) #7
mmenke
On 2014/09/16 16:28:49, jochen wrote: > On 2014/09/16 at 15:53:57, mmenke wrote: > > > ...
6 years, 3 months ago (2014-09-16 16:30:45 UTC) #8
mmenke
https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc#newcode694 net/url_request/url_request.cc:694: network_delegate_->CanCorrectInvalidReferrerHeader( On 2014/09/16 16:27:57, jochen wrote: > On 2014/09/16 ...
6 years, 3 months ago (2014-09-16 16:37:15 UTC) #9
jochen (gone - plz use gerrit)
On 2014/09/16 at 16:30:45, mmenke wrote: > On 2014/09/16 16:28:49, jochen wrote: > > On ...
6 years, 3 months ago (2014-09-16 17:03:16 UTC) #10
jochen (gone - plz use gerrit)
On 2014/09/16 at 16:37:15, mmenke wrote: > https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc > File net/url_request/url_request.cc (right): > > https://codereview.chromium.org/572273002/diff/20001/net/url_request/url_request.cc#newcode694 ...
6 years, 3 months ago (2014-09-16 17:04:21 UTC) #11
jochen (gone - plz use gerrit)
btw, which name would you prefer for the NetworkDelegate method? CancelURLRequestWithPolicyViolatingReferrerHeader() maybe?
6 years, 3 months ago (2014-09-16 17:08:27 UTC) #12
mmenke
On 2014/09/16 17:08:27, jochen wrote: > btw, which name would you prefer for the NetworkDelegate ...
6 years, 3 months ago (2014-09-16 17:16:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/572273002/40001
6 years, 3 months ago (2014-09-16 17:30:05 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 729bff37c9911da3a8722b0822b001a1df175928
6 years, 3 months ago (2014-09-16 18:32:24 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 18:36:01 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0e3b3a6c53b408ea11cdab0a46d12ea905782821
Cr-Commit-Position: refs/heads/master@{#295107}

Powered by Google App Engine
This is Rietveld 408576698