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

Issue 6065008: Do not override User-Agent header added by WebCore (Closed)

Created:
10 years ago by caseq
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pfeldman, not_yurys
Visibility:
Public.

Description

Do not override User-Agent header added by WebCore - do not strip User-Agent while flattening headers in renderer - do not override User-Agent header in the network stack if one is already supplied by higher level; - added RequestHeaders::SetHeaderIfMissing TEST=URLRequestTestHTTP.OverrideUserAgent BUG=http://crbug.com/67063

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -17 lines) Patch
M net/http/http_request_headers.h View 1 chunk +6 lines, -0 lines 0 comments Download
M net/http/http_request_headers.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M net/http/http_request_headers_unittest.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 chunks +7 lines, -13 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
caseq
The network stack currently sets User-Agent header unconditionally, overwriting whatever could be supplied by the ...
10 years ago (2010-12-24 13:18:18 UTC) #1
willchan no longer on Chromium
+darin since I suspect he cares about User-Agent handling. The code is simple and looks ...
10 years ago (2010-12-24 20:38:21 UTC) #2
caseq
Hi Will, thanks for a prompt response! On 2010/12/24 20:38:21, willchan wrote: > +darin since ...
9 years, 12 months ago (2010-12-26 07:08:07 UTC) #3
eroman
Does WebKit end up setting this most of the time? Or will the common codepath ...
9 years, 11 months ago (2011-01-04 19:27:13 UTC) #4
caseq
On 2011/01/04 19:27:13, eroman wrote: > Does WebKit end up setting this most of the ...
9 years, 11 months ago (2011-01-20 13:48:35 UTC) #5
darin (slow to review)
LGTM XMLHttpRequest is prevented from overriding the User-Agent header. See XMLHttpRequest.cpp, and search for "user-agent" ...
9 years, 11 months ago (2011-01-20 17:09:02 UTC) #6
darin (slow to review)
By the way, in case anyone was curious, the UA string was not sent to ...
9 years, 11 months ago (2011-01-20 17:09:53 UTC) #7
willchan no longer on Chromium
9 years, 11 months ago (2011-01-20 17:28:15 UTC) #8
LOL

On Thu, Jan 20, 2011 at 9:09 AM, <darin@chromium.org> wrote:

> By the way, in case anyone was curious, the UA string was not sent to the
> browser to reduce bytes sent over IPC.  It was probably premature
> optimization.
>
>
> http://codereview.chromium.org/6065008/
>

Powered by Google App Engine
This is Rietveld 408576698