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

Issue 402107: ChromeFrame's host network stack implementation for IE full tab mode implicit... (Closed)

Created:
11 years, 1 month ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit, wtc
CC:
chromium-reviews_googlegroups.com, amit, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

ChromeFrame's host network stack implementation for IE full tab mode implicitly follows redirects. When Chrome receives a notification about a redirect it also attempts to follow the redirect request. While this works in most cases, some sites actually returned an error for the second request initiated by Chrome. Fix is to abort the request in urlmon, when we receive a notification about a redirect. I also fixed the IsRedirectResponse function in the UrlRequestAutomationJob class to only treat 301, 302, 303 and 307 as redirect codes on the same lines as the default http job. Test=covered by existing network tests. I also verified that http://code.google.com/p/chromium/issues/detail?id=25643 works with this CL. Fixes http://code.google.com/p/chromium/issues/detail?id=28296 Bug=28296 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32896

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 5

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 6

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -50 lines) Patch
M chrome/browser/automation/url_request_automation_job.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -14 lines 0 comments Download
M chrome_frame/urlmon_url_request.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -1 line 0 comments Download
M chrome_frame/urlmon_url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +81 lines, -29 lines 0 comments Download
M net/http/http_response_headers.h View 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 8 9 2 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ananta
11 years, 1 month ago (2009-11-20 01:13:36 UTC) #1
amit
http://codereview.chromium.org/402107/diff/3002/2005 File chrome/browser/automation/url_request_automation_job.cc (right): http://codereview.chromium.org/402107/diff/3002/2005#newcode203 Line 203: if (!(redirect_status_ == 301 || What happens in ...
11 years, 1 month ago (2009-11-20 16:20:58 UTC) #2
ananta
http://codereview.chromium.org/402107/diff/3002/2005 File chrome/browser/automation/url_request_automation_job.cc (right): http://codereview.chromium.org/402107/diff/3002/2005#newcode203 Line 203: if (!(redirect_status_ == 301 || On 2009/11/20 16:20:58, ...
11 years, 1 month ago (2009-11-20 18:19:03 UTC) #3
ananta
On 2009/11/20 16:20:58, amit wrote: > http://codereview.chromium.org/402107/diff/3002/2005 > File chrome/browser/automation/url_request_automation_job.cc (right): > > http://codereview.chromium.org/402107/diff/3002/2005#newcode203 > ...
11 years, 1 month ago (2009-11-21 05:06:54 UTC) #4
amit
http://codereview.chromium.org/402107/diff/10001/11003 File chrome/browser/automation/url_request_automation_job.cc (right): http://codereview.chromium.org/402107/diff/10001/11003#newcode203 Line 203: if (!(redirect_status_ == 301 || I guess another ...
11 years, 1 month ago (2009-11-21 06:10:36 UTC) #5
ananta
http://codereview.chromium.org/402107/diff/10001/11003 File chrome/browser/automation/url_request_automation_job.cc (right): http://codereview.chromium.org/402107/diff/10001/11003#newcode203 chrome/browser/automation/url_request_automation_job.cc:203: if (!(redirect_status_ == 301 || On 2009/11/21 06:10:38, amit ...
11 years, 1 month ago (2009-11-23 18:21:16 UTC) #6
wtc
http://codereview.chromium.org/402107/diff/10001/11003 File chrome/browser/automation/url_request_automation_job.cc (right): http://codereview.chromium.org/402107/diff/10001/11003#newcode203 chrome/browser/automation/url_request_automation_job.cc:203: if (!(redirect_status_ == 301 || On 2009/11/23 18:21:16, ananta ...
11 years, 1 month ago (2009-11-23 19:07:02 UTC) #7
ananta
On 2009/11/23 19:07:02, wtc wrote: > http://codereview.chromium.org/402107/diff/10001/11003 > File chrome/browser/automation/url_request_automation_job.cc (right): > > http://codereview.chromium.org/402107/diff/10001/11003#newcode203 > ...
11 years, 1 month ago (2009-11-23 19:41:03 UTC) #8
wtc
I only reviewed your changes to net/http/http_response_headers.{h,cc}. I'd like to suggest a renaming and another ...
11 years, 1 month ago (2009-11-23 20:09:58 UTC) #9
amit
lgtm with wtc's comments addressed. http://codereview.chromium.org/402107/diff/15003/14002 File chrome_frame/urlmon_url_request.cc (right): http://codereview.chromium.org/402107/diff/15003/14002#newcode620 chrome_frame/urlmon_url_request.cc:620: // error value is ...
11 years, 1 month ago (2009-11-23 21:37:59 UTC) #10
ananta
http://codereview.chromium.org/402107/diff/15003/14002 File chrome_frame/urlmon_url_request.cc (right): http://codereview.chromium.org/402107/diff/15003/14002#newcode620 chrome_frame/urlmon_url_request.cc:620: // error value is E_ACCESSDENIED, that means an unsafe ...
11 years, 1 month ago (2009-11-23 21:43:32 UTC) #11
wtc
11 years, 1 month ago (2009-11-23 22:37:20 UTC) #12
The changes to net/http/http_response_headers.{h,cc} in
this CL look good to me!

Powered by Google App Engine
This is Rietveld 408576698