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

Issue 6381005: Implement a poor mans redirect handling in ChromeFrame for browsers which don... (Closed)

Created:
9 years, 11 months ago by ananta
Modified:
9 years, 6 months ago
CC:
chromium-reviews, amit
Visibility:
Public.

Description

Implement poor man's redirect handling in ChromeFrame for browsers which don't implement the NPAPI redirect notification spec. We compare the URL received in the NewStream notification with the requested URL and if they differ we cancel the current request and inform Chrome that this was a redirect. The sideeffect would be that there would be two GET requests sent out. BUG=69419 TEST=none. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72029

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M chrome_frame/np_browser_functions.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome_frame/np_browser_functions.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome_frame/npapi_url_request.cc View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ananta
9 years, 11 months ago (2011-01-20 21:27:56 UTC) #1
Sigurður Ásgeirsson
lgtm, except I can't say I understand the stream lifetime in this case. http://codereview.chromium.org/6381005/diff/1/chrome_frame/npapi_url_request.cc File ...
9 years, 11 months ago (2011-01-20 21:39:36 UTC) #2
amit
lgtm
9 years, 11 months ago (2011-01-20 21:46:08 UTC) #3
ananta
9 years, 11 months ago (2011-01-20 22:52:00 UTC) #4
http://codereview.chromium.org/6381005/diff/1/chrome_frame/npapi_url_request.cc
File chrome_frame/npapi_url_request.cc (right):

http://codereview.chromium.org/6381005/diff/1/chrome_frame/npapi_url_request....
chrome_frame/npapi_url_request.cc:389: return NPERR_GENERIC_ERROR;
On 2011/01/20 21:39:36, Ruðrugis wrote:
> do you need to destroy the stream with npapi::DestroyStream before returning? 

No. The host should destroy the stream on receiving an error.

Powered by Google App Engine
This is Rietveld 408576698