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

Issue 9720001: Add a setting to CF to remove 'chromeframe' from the UserAgent on a per-pattern basis. (Closed)

Created:
8 years, 9 months ago by robertshield
Modified:
8 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add a setting to CF to remove 'chromeframe' from the UserAgent on a per-pattern basis. Useful for testing and dealing with sites with broken UA parsing. BUG=117157 TEST=chrome_frame_tests,chrome_frame_unittests,add a ExcludeUAFromDomain key to the CF settings, add some pattern values, observe that the UA string does not contain CF. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129985

Patch Set 1 #

Patch Set 2 : Add missing files. #

Patch Set 3 : Minor tweak to UA building. #

Total comments: 63

Patch Set 4 : Review feedback from Greg and Alex. #

Total comments: 38

Patch Set 5 : grt's feedback, test updates #

Total comments: 4

Patch Set 6 : In the end. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -166 lines) Patch
M chrome_frame/chrome_frame.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome_frame/html_utils.h View 2 chunks +9 lines, -4 lines 0 comments Download
M chrome_frame/html_utils.cc View 1 2 3 4 5 3 chunks +35 lines, -6 lines 0 comments Download
M chrome_frame/http_negotiate.cc View 1 2 3 4 4 chunks +71 lines, -32 lines 0 comments Download
A chrome_frame/registry_list_preferences_holder.h View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A chrome_frame/registry_list_preferences_holder.cc View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M chrome_frame/test/html_util_unittests.cc View 2 chunks +84 lines, -67 lines 0 comments Download
M chrome_frame/test/http_negotiate_unittest.cc View 1 2 3 4 4 chunks +82 lines, -10 lines 0 comments Download
M chrome_frame/test/util_unittests.cc View 1 2 3 4 5 chunks +12 lines, -1 line 0 comments Download
M chrome_frame/utils.h View 1 2 3 4 2 chunks +24 lines, -9 lines 0 comments Download
M chrome_frame/utils.cc View 1 2 3 4 5 6 chunks +69 lines, -37 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
robertshield
8 years, 9 months ago (2012-03-19 14:28:29 UTC) #1
amit
On 2012/03/19 14:28:29, robertshield wrote: The issue here is Chrome Frame UA tag 'chromeframe' raises ...
8 years, 9 months ago (2012-03-19 16:43:50 UTC) #2
robertshield
On 2012/03/19 16:43:50, amit wrote: > On 2012/03/19 14:28:29, robertshield wrote: > > The issue ...
8 years, 9 months ago (2012-03-19 16:54:30 UTC) #3
slightlyoff1
http://codereview.chromium.org/9720001/diff/5001/chrome_frame/html_utils.cc File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/9720001/diff/5001/chrome_frame/html_utils.cc#newcode379 chrome_frame/html_utils.cc:379: DCHECK_EQ(false, StartsWithASCII(value, "User-Agent:", true)); What's the rationale for this ...
8 years, 9 months ago (2012-03-20 15:31:55 UTC) #4
grt (UTC plus 2)
http://codereview.chromium.org/9720001/diff/5001/chrome_frame/html_utils.cc File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/9720001/diff/5001/chrome_frame/html_utils.cc#newcode381 chrome_frame/html_utils.cc:381: std::string::size_type cf_start = value.find(kChromeFrameUserAgent); Chromium style says to use ...
8 years, 9 months ago (2012-03-20 17:27:45 UTC) #5
robertshield
http://codereview.chromium.org/9720001/diff/5001/chrome_frame/html_utils.cc File chrome_frame/html_utils.cc (right): http://codereview.chromium.org/9720001/diff/5001/chrome_frame/html_utils.cc#newcode379 chrome_frame/html_utils.cc:379: DCHECK_EQ(false, StartsWithASCII(value, "User-Agent:", true)); On 2012/03/20 15:31:56, slightlyoff1 wrote: ...
8 years, 9 months ago (2012-03-26 02:43:32 UTC) #6
grt (UTC plus 2)
lookin' good. https://chromiumcodereview.appspot.com/9720001/diff/13001/chrome_frame/html_utils.cc File chrome_frame/html_utils.cc (right): https://chromiumcodereview.appspot.com/9720001/diff/13001/chrome_frame/html_utils.cc#newcode370 chrome_frame/html_utils.cc:370: // add comment text or remove // ...
8 years, 9 months ago (2012-03-26 17:48:41 UTC) #7
robertshield
Thanks Greg for the performance tips, comments addressed, plus I added a little bit of ...
8 years, 9 months ago (2012-03-27 04:33:22 UTC) #8
grt (UTC plus 2)
LGTM w/ two trivial formatting tips. Awesome change! https://chromiumcodereview.appspot.com/9720001/diff/18002/chrome_frame/html_utils.cc File chrome_frame/html_utils.cc (right): https://chromiumcodereview.appspot.com/9720001/diff/18002/chrome_frame/html_utils.cc#newcode383 chrome_frame/html_utils.cc:383: ++offset; ...
8 years, 9 months ago (2012-03-27 13:06:40 UTC) #9
robertshield
Thanks! https://chromiumcodereview.appspot.com/9720001/diff/18002/chrome_frame/html_utils.cc File chrome_frame/html_utils.cc (right): https://chromiumcodereview.appspot.com/9720001/diff/18002/chrome_frame/html_utils.cc#newcode383 chrome_frame/html_utils.cc:383: ++offset; On 2012/03/27 13:06:40, grt wrote: > nit: ...
8 years, 9 months ago (2012-03-28 14:33:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/9720001/27001
8 years, 9 months ago (2012-03-28 14:34:23 UTC) #11
commit-bot: I haz the power
Try job failure for 9720001-27001 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-28 17:52:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/9720001/27001
8 years, 8 months ago (2012-03-30 19:14:50 UTC) #13
commit-bot: I haz the power
8 years, 8 months ago (2012-03-30 22:52:35 UTC) #14
Change committed as 129985

Powered by Google App Engine
This is Rietveld 408576698