summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_url_request_info.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-02 18:05:44 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-02 18:05:44 +0000
commit2fb3e36cba45f937baadec58dca6e3dfb3a92519 (patch)
treed741e9acaaf8b7c6aa3910fb81f98870e2daadc1 /webkit/glue/plugins/pepper_url_request_info.cc
parent46210f046927e1d822da3fd46a8ef87df28043e4 (diff)
downloadchromium_src-2fb3e36cba45f937baadec58dca6e3dfb3a92519.zip
chromium_src-2fb3e36cba45f937baadec58dca6e3dfb3a92519.tar.gz
chromium_src-2fb3e36cba45f937baadec58dca6e3dfb3a92519.tar.bz2
Allow Pepper plugins to make requests with relative urls. Also allow bundled Pepper plugins to specify file extensions.
BUG=48140 Review URL: http://codereview.chromium.org/2806049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/pepper_url_request_info.cc')
-rw-r--r--webkit/glue/plugins/pepper_url_request_info.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/glue/plugins/pepper_url_request_info.cc b/webkit/glue/plugins/pepper_url_request_info.cc
index ee8f11b..60f7b57 100644
--- a/webkit/glue/plugins/pepper_url_request_info.cc
+++ b/webkit/glue/plugins/pepper_url_request_info.cc
@@ -118,7 +118,9 @@ bool URLRequestInfo::SetStringProperty(PP_URLRequestProperty property,
// TODO(darin): Validate input. Perhaps at a different layer?
switch (property) {
case PP_URLRequestProperty_URL:
- web_request_.setURL(GURL(value));
+ // Keep the url in a string instead of a URL object because it might not
+ // be complete yet.
+ url_ = value;
return true;
case PP_URLRequestProperty_Method:
web_request_.setHTTPMethod(WebString::fromUTF8(value));