summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 21:54:55 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 21:54:55 +0000
commit2581e577597dd0f435ae1e6fe918df912bb98248 (patch)
tree5d1edc9fe3d12eb1d7da8d8361bc57e5ad4dc397 /chrome/plugin
parentdec173b814e09f0633bdfefad7e1d89c50fa4919 (diff)
downloadchromium_src-2581e577597dd0f435ae1e6fe918df912bb98248.zip
chromium_src-2581e577597dd0f435ae1e6fe918df912bb98248.tar.gz
chromium_src-2581e577597dd0f435ae1e6fe918df912bb98248.tar.bz2
Propagate the "first party for cookies" from WebKit to the network stack
when we follow a redirect, because WebKit's MainResourceLoader::willSendRequest method may change the "first party for cookies" URL of the resource request. R=abarth BUG=25133 TEST=In Options menu, change cookie policy to "Accept cookies only from sites I visit" and then follow the instructions in issue 25133 comment 20. Review URL: http://codereview.chromium.org/385024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/chrome_plugin_host.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/plugin/chrome_plugin_host.cc b/chrome/plugin/chrome_plugin_host.cc
index 6c3e71a..23f0e5b 100644
--- a/chrome/plugin/chrome_plugin_host.cc
+++ b/chrome/plugin/chrome_plugin_host.cc
@@ -68,9 +68,11 @@ class PluginRequestHandlerProxy
virtual bool OnReceivedRedirect(
const GURL& new_url,
- const ResourceLoaderBridge::ResponseInfo& info) {
+ const ResourceLoaderBridge::ResponseInfo& info,
+ GURL* new_first_party_for_cookies) {
plugin_->functions().response_funcs->received_redirect(
cprequest_.get(), new_url.spec().c_str());
+ *new_first_party_for_cookies = GURL();
return true;
}