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

Issue 259025: Add the chromeframe tag to the user agent header at runtime instead of static... (Closed)

Created:
11 years, 2 months ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
amit, ananta
CC:
chromium-reviews_googlegroups.com, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Add the chromeframe tag to the user agent header at runtime instead of statically in the registry.TEST=Try disabling GCF and see if the chromeframe tag in the user agent is still set. It should not be. Also make sure you don't have an older version installed... the chromeframe tag should not be in the registry - if it is, you've got an older version still registered. This should fix the issue with going to wave.google.com after disabling chrome frame and seeing the white page of death.R=amitBUG=22760 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29370

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 18

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Total comments: 8

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 15

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 3

Patch Set 13 : '' #

Total comments: 10

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1500 lines, -817 lines) Patch
M chrome_frame/bho.cc View 10 11 12 13 3 chunks +5 lines, -0 lines 0 comments Download
MM chrome_frame/chrome_frame.gyp View 10 11 12 13 1 chunk +752 lines, -741 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +10 lines, -5 lines 0 comments Download
M chrome_frame/html_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +24 lines, -0 lines 0 comments Download
M chrome_frame/html_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +75 lines, -1 line 0 comments Download
A chrome_frame/http_negotiate.h View 1 chunk +47 lines, -0 lines 0 comments Download
A chrome_frame/http_negotiate.cc View 10 11 12 13 1 chunk +164 lines, -0 lines 0 comments Download
M chrome_frame/protocol_sink_wrap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +14 lines, -18 lines 0 comments Download
M chrome_frame/protocol_sink_wrap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +6 lines, -46 lines 0 comments Download
M chrome_frame/test/html_util_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +96 lines, -0 lines 0 comments Download
A chrome_frame/test/http_negotiate_unittest.cc View 10 11 1 chunk +118 lines, -0 lines 0 comments Download
M chrome_frame/utils.h View 8 9 10 11 12 13 4 chunks +60 lines, -2 lines 0 comments Download
M chrome_frame/vtable_patch_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +58 lines, -4 lines 0 comments Download
M chrome_frame/vtable_patch_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +71 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
tommi (sloooow) - chröme
11 years, 2 months ago (2009-10-02 21:28:53 UTC) #1
amit
Thanks Tommi for this investigation and fix, it looks pretty good! Now I have an ...
11 years, 2 months ago (2009-10-02 22:02:04 UTC) #2
tommi (sloooow) - chröme
On 2009/10/02 22:02:04, amit wrote: > Thanks Tommi for this investigation and fix, it looks ...
11 years, 2 months ago (2009-10-05 17:15:18 UTC) #3
tommi (sloooow) - chröme
http://codereview.chromium.org/259025/diff/1/5 File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/259025/diff/1/5#newcode299 Line 299: std::string ret; On 2009/10/02 22:02:04, amit wrote: > ...
11 years, 2 months ago (2009-10-05 17:15:29 UTC) #4
amit
On Mon, Oct 5, 2009 at 10:15 AM, <tommi@chromium.org> wrote: > > http://codereview.chromium.org/259025/diff/1/5 > File ...
11 years, 2 months ago (2009-10-05 17:43:12 UTC) #5
tommi (sloooow) - chröme
The only thing I can think of registry wise is the "User Agent" value under.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet ...
11 years, 2 months ago (2009-10-05 18:10:42 UTC) #6
amit
Yeah :( I did some more research, looked at 'UA tokens' but that too seems ...
11 years, 2 months ago (2009-10-06 00:15:22 UTC) #7
amit
First pass at it. This is a big effort and I like the tests :) ...
11 years, 2 months ago (2009-10-06 09:08:19 UTC) #8
tommi (sloooow) - chröme
thanks! I'll upload a new patch in a few minutes and ping you back. just ...
11 years, 2 months ago (2009-10-06 15:18:56 UTC) #9
tommi (sloooow) - chröme
new changes uploaded.
11 years, 2 months ago (2009-10-06 18:54:38 UTC) #10
amit
one more pass at it ... http://codereview.chromium.org/259025/diff/6001/6005 File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/259025/diff/6001/6005#newcode305 Line 305: index++; index ...
11 years, 2 months ago (2009-10-07 21:36:03 UTC) #11
tommi (sloooow) - chröme
more updates on the way, I'll let you know. http://codereview.chromium.org/259025/diff/6001/6005 File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/259025/diff/6001/6005#newcode305 Line ...
11 years, 2 months ago (2009-10-08 17:24:58 UTC) #12
amit
nice, I'll wait for the new patch. http://codereview.chromium.org/259025/diff/6001/6002 File chrome_frame/protocol_sink_wrap.cc (right): http://codereview.chromium.org/259025/diff/6001/6002#newcode210 Line 210: PatchHttpNegotiate(prot_sink); ...
11 years, 2 months ago (2009-10-08 17:39:24 UTC) #13
tommi (sloooow) - chröme
changes uploaded http://codereview.chromium.org/259025/diff/6001/6002 File chrome_frame/protocol_sink_wrap.cc (right): http://codereview.chromium.org/259025/diff/6001/6002#newcode210 Line 210: PatchHttpNegotiate(prot_sink); > What I meant was ...
11 years, 2 months ago (2009-10-08 17:59:03 UTC) #14
tommi (sloooow) - chröme
new changes uploaded. as discussed offline I figured out a way to only patch once ...
11 years, 2 months ago (2009-10-14 17:11:50 UTC) #15
ananta
Looks great. Thanks for all the user agent tests :) http://codereview.chromium.org/259025/diff/15001/15006 File chrome_frame/chrome_tab.cc (right): http://codereview.chromium.org/259025/diff/15001/15006#newcode29 ...
11 years, 2 months ago (2009-10-14 17:39:59 UTC) #16
tommi (sloooow) - chröme
http://codereview.chromium.org/259025/diff/15001/15006 File chrome_frame/chrome_tab.cc (right): http://codereview.chromium.org/259025/diff/15001/15006#newcode29 Line 29: #include <atlsecurity.h> // NOLINT On 2009/10/14 17:40:00, ananta ...
11 years, 2 months ago (2009-10-14 18:13:05 UTC) #17
amit
looking better and I am still PIA :) http://codereview.chromium.org/259025/diff/9002/14004 File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/259025/diff/9002/14004#newcode296 Line 296: ...
11 years, 2 months ago (2009-10-14 22:36:10 UTC) #18
tommi (sloooow) - chröme
I'll ping later today when I've split the sources up, changed the parsing code and ...
11 years, 2 months ago (2009-10-15 15:00:48 UTC) #19
amit
http://codereview.chromium.org/259025/diff/9002/14004 File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/259025/diff/9002/14004#newcode296 Line 296: static char cf_user_agent[kArraySize] = {0}; On 2009/10/15 15:00:48, ...
11 years, 2 months ago (2009-10-15 15:12:36 UTC) #20
tommi (sloooow) - chröme
latest set of patches uploaded. I've split the files, added tests, moved the calls to ...
11 years, 2 months ago (2009-10-15 20:01:41 UTC) #21
tommi (sloooow) - chröme
fyi - this patch is now depending on another patch: http://codereview.chromium.org/273072
11 years, 2 months ago (2009-10-15 21:08:07 UTC) #22
tommi (sloooow) - chröme
latest refactoring changes uploaded.
11 years, 2 months ago (2009-10-15 21:23:41 UTC) #23
amit
lgtm with a couple of nits. Great stuff! http://codereview.chromium.org/259025/diff/22001/22011 File chrome_frame/http_negotiate.cc (right): http://codereview.chromium.org/259025/diff/22001/22011#newcode108 Line 108: ...
11 years, 2 months ago (2009-10-15 23:53:34 UTC) #24
tommi (sloooow) - chröme
On Thu, Oct 15, 2009 at 7:53 PM, <amit@chromium.org> wrote: > lgtm with a couple ...
11 years, 2 months ago (2009-10-16 02:14:02 UTC) #25
tommi (sloooow) - chröme
changes done and uploaded. note that they're subject to http://codereview.chromium.org/276067 being committed. http://codereview.chromium.org/259025/diff/22001/22011 File chrome_frame/http_negotiate.cc ...
11 years, 2 months ago (2009-10-16 21:08:18 UTC) #26
amit
lgtm. Looks wonderful, a few nits below. http://codereview.chromium.org/259025/diff/23001/24004 File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/259025/diff/23001/24004#newcode325 Line 325: bool ...
11 years, 2 months ago (2009-10-16 22:08:13 UTC) #27
tommi (sloooow) - chröme
11 years, 2 months ago (2009-10-16 22:16:06 UTC) #28
http://codereview.chromium.org/259025/diff/23001/24004
File chrome_frame/html_utils.cc (right):

http://codereview.chromium.org/259025/diff/23001/24004#newcode325
Line 325: bool AddChromeFrameUATagToRequestHeaders(const std::string&
http_headers,
On 2009/10/16 22:08:13, amit wrote:
> Remove?

Done.

http://codereview.chromium.org/259025/diff/23001/24004#newcode382
Line 382: std::string GetHeaderValue(const std::string& headers,
On 2009/10/16 22:08:13, amit wrote:
> Remove?

Done.

http://codereview.chromium.org/259025/diff/23001/24003
File chrome_frame/html_utils.h (right):

http://codereview.chromium.org/259025/diff/23001/24003#newcode132
Line 132: bool AddChromeFrameUATagToRequestHeaders(const std::string&
http_headers,
On 2009/10/16 22:08:13, amit wrote:
> Remove?

Done.

http://codereview.chromium.org/259025/diff/23001/24003#newcode151
Line 151: std::string GetHeaderValue(const std::string& headers, const char*
header_name);
On 2009/10/16 22:08:13, amit wrote:
> Remove?

Done.

http://codereview.chromium.org/259025/diff/23001/24010
File chrome_frame/http_negotiate.cc (right):

http://codereview.chromium.org/259025/diff/23001/24010#newcode127
Line 127: if (!user_agent_value.length())
On 2009/10/16 22:08:13, amit wrote:
> empty()?

Done.

Powered by Google App Engine
This is Rietveld 408576698