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

Unified Diff: webkit/glue/webplugin_impl.cc

Issue 601038: Specify the first-party-for-cookies URL for HTTP requests... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add TODO comments about WebDocument::firstPartyForCookies. Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.cc
===================================================================
--- webkit/glue/webplugin_impl.cc (revision 40057)
+++ webkit/glue/webplugin_impl.cc (working copy)
@@ -557,6 +557,8 @@
SetReferrer(&request, referrer_flag);
request.setHTTPMethod(WebString::fromUTF8(method));
+ // TODO(wtc): add a WebDocument::firstPartyForCookies method.
+ request.setFirstPartyForCookies(webframe_->top()->url());
if (len > 0) {
if (!SetPostData(&request, buf, len)) {
// Uhoh - we're in trouble. There isn't a good way
@@ -849,7 +851,7 @@
}
void WebPluginImpl::HandleURLRequest(const char* url,
- const char *method,
+ const char* method,
const char* target,
const char* buf,
unsigned int len,
@@ -862,7 +864,7 @@
}
void WebPluginImpl::HandleURLRequestInternal(const char* url,
- const char *method,
+ const char* method,
const char* target,
const char* buf,
unsigned int len,
@@ -952,6 +954,8 @@
info.client = client;
info.request.initialize();
info.request.setURL(url);
+ // TODO(wtc): add a WebDocument::firstPartyForCookies method.
+ info.request.setFirstPartyForCookies(webframe_->top()->url());
info.request.setRequestorProcessID(delegate_->GetProcessId());
info.request.setTargetType(WebURLRequest::TargetIsObject);
info.request.setHTTPMethod(WebString::fromUTF8(method));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698