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

Issue 422233006: Add fake headers to URLRequestRedirectJobs. (Closed)

Created:
6 years, 4 months ago by mmenke
Modified:
6 years, 4 months ago
Reviewers:
davidben, battre
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman
Project:
chromium
Visibility:
Public.

Description

Add fake headers to URLRequestRedirectJobs. Plugin logic expects redirects to have headers, and gets very confused when they're missing. BUG=345160 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287901

Patch Set 1 #

Patch Set 2 : Update tests #

Patch Set 3 : Fix tests, fix GetResponseCode() #

Patch Set 4 : Add DCHECKs #

Patch Set 5 : Cleanups #

Total comments: 2

Patch Set 6 : Switch to HTTP/1.1 #

Patch Set 7 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -34 lines) Patch
M chrome/test/data/extensions/api_test/webrequest/test_blocking.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/test_declarative1.js View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M net/url_request/url_request_redirect_job.h View 1 2 4 chunks +13 lines, -8 lines 0 comments Download
M net/url_request/url_request_redirect_job.cc View 1 2 3 4 5 3 chunks +59 lines, -18 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 3 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
mmenke
6 years, 4 months ago (2014-08-05 15:10:32 UTC) #1
davidben
lgtm. Though it's apparently still not the case that every redirect has headers. Some random ...
6 years, 4 months ago (2014-08-05 19:44:02 UTC) #2
mmenke
On 2014/08/05 19:44:02, David Benjamin wrote: > lgtm. Though it's apparently still not the case ...
6 years, 4 months ago (2014-08-05 20:24:54 UTC) #3
mmenke
[+battre] Please review the webrequest changes (JS test files only).
6 years, 4 months ago (2014-08-05 20:27:22 UTC) #4
battre
WebRequest changes LGTM, but I have one comment that you can resolve with the network ...
6 years, 4 months ago (2014-08-06 07:54:25 UTC) #5
mmenke
Thanks! https://codereview.chromium.org/422233006/diff/120001/net/url_request/url_request_redirect_job.cc File net/url_request/url_request_redirect_job.cc (right): https://codereview.chromium.org/422233006/diff/120001/net/url_request/url_request_redirect_job.cc#newcode88 net/url_request/url_request_redirect_job.cc:88: "Non-Authoritative-Reason: %s", On 2014/08/06 07:54:25, battre wrote: > ...
6 years, 4 months ago (2014-08-06 14:57:01 UTC) #6
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 4 months ago (2014-08-06 14:57:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/422233006/160001
6 years, 4 months ago (2014-08-06 14:58:16 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-06 19:11:29 UTC) #9
mmenke
The CQ bit was unchecked by mmenke@chromium.org
6 years, 4 months ago (2014-08-06 19:36:31 UTC) #10
mmenke
On 2014/08/06 19:11:29, I haz the power (commit-bot) wrote: > FYI, CQ is re-trying this ...
6 years, 4 months ago (2014-08-06 19:37:02 UTC) #11
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 4 months ago (2014-08-06 19:41:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/422233006/180001
6 years, 4 months ago (2014-08-06 19:43:02 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 23:45:21 UTC) #14
Message was sent while issue was closed.
Change committed as 287901

Powered by Google App Engine
This is Rietveld 408576698