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

Unified Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 | « webkit/glue/glue_util.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframeloaderclient_impl.cc
===================================================================
--- webkit/glue/webframeloaderclient_impl.cc (revision 3991)
+++ webkit/glue/webframeloaderclient_impl.cc (working copy)
@@ -917,8 +917,12 @@
} else if (disposition == SAVE_TO_DISK) {
policy_action = PolicyDownload;
} else {
+ GURL referrer = webkit_glue::StringToGURL(
+ request.httpHeaderField("Referer"));
+
d->OpenURL(webframe_->webview_impl(),
webkit_glue::KURLToGURL(request.url()),
+ referrer,
disposition);
policy_action = PolicyIgnore;
}
« no previous file with comments | « webkit/glue/glue_util.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698