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

Unified Diff: webkit/glue/plugins/pepper_url_loader.cc

Issue 2806049: Allow Pepper plugins to make requests with relative urls. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « chrome/common/pepper_plugin_registry.cc ('k') | webkit/glue/plugins/pepper_url_request_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_url_loader.cc
===================================================================
--- webkit/glue/plugins/pepper_url_loader.cc (revision 51504)
+++ webkit/glue/plugins/pepper_url_loader.cc (working copy)
@@ -19,6 +19,7 @@
#include "webkit/glue/plugins/pepper_url_response_info.h"
using WebKit::WebFrame;
+using WebKit::WebString;
using WebKit::WebURL;
using WebKit::WebURLError;
using WebKit::WebURLLoader;
@@ -175,6 +176,8 @@
WebFrame* frame = instance_->container()->element().document().frame();
if (!frame)
return PP_Error_Failed;
+ web_request.setURL(
+ frame->document().completeURL(WebString::fromUTF8(request->url())));
frame->setReferrerForRequest(web_request, WebURL()); // Use default.
frame->dispatchWillSendRequest(web_request);
« no previous file with comments | « chrome/common/pepper_plugin_registry.cc ('k') | webkit/glue/plugins/pepper_url_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698