summaryrefslogtreecommitdiffstats
path: root/chrome_frame/urlmon_url_request.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 22:28:31 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 22:28:31 +0000
commitde54e7dffb52e0bd8d81a17d2d64377cbcbc5b3f (patch)
treefead22c2298e252040ae7d18e994fed6e481c712 /chrome_frame/urlmon_url_request.cc
parentbf04ad0dae9f4f479f90fd2b38f634ffbaf434b4 (diff)
downloadchromium_src-de54e7dffb52e0bd8d81a17d2d64377cbcbc5b3f.zip
chromium_src-de54e7dffb52e0bd8d81a17d2d64377cbcbc5b3f.tar.gz
chromium_src-de54e7dffb52e0bd8d81a17d2d64377cbcbc5b3f.tar.bz2
Set the wininet option to not follow redirects automatically for ChromeFrame requests. This fixes the bug in ChromeFrame where the status
codes read off the binding in the BINDSTATUS_REDIRECTING notification would be 0 or 200 instead of valid redirect codes. BUG=none TEST=redirects should continue to work in ChromeFrame, i.e. they should be aborted in IE and followed by Chrome. Review URL: http://codereview.chromium.org/6882051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/urlmon_url_request.cc')
-rw-r--r--chrome_frame/urlmon_url_request.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc
index a8cdec8..e45e26e 100644
--- a/chrome_frame/urlmon_url_request.cc
+++ b/chrome_frame/urlmon_url_request.cc
@@ -442,6 +442,9 @@ STDMETHODIMP UrlmonUrlRequest::GetBindInfo(DWORD* bind_flags,
*bind_flags = BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE | BINDF_PULLDATA;
+ bind_info->dwOptionsFlags = INTERNET_FLAG_NO_AUTO_REDIRECT;
+ bind_info->dwOptions = BINDINFO_OPTIONS_WININETFLAG;
+
// TODO(ananta)
// Look into whether the other load flags need to be supported in chrome
// frame.