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

Unified Diff: content/renderer/pepper/url_request_info_util.cc

Issue 23548008: Don't set the request target type to object when navigating from a Pepper plug-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: content/renderer/pepper/url_request_info_util.cc
diff --git a/content/renderer/pepper/url_request_info_util.cc b/content/renderer/pepper/url_request_info_util.cc
index e82c8a1861230a0bf5664443b6e09c8c6baac546..b96f6d88280c544a0df089a01c86fdaa81937363 100644
--- a/content/renderer/pepper/url_request_info_util.cc
+++ b/content/renderer/pepper/url_request_info_util.cc
@@ -18,7 +18,6 @@
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/WebHTTPBody.h"
#include "third_party/WebKit/public/platform/WebURL.h"
-#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "url/gurl.h"
@@ -115,6 +114,7 @@ bool EnsureFileRefObjectsPopulated(ppapi::URLRequestInfoData* data) {
} // namespace
bool CreateWebURLRequest(ppapi::URLRequestInfoData* data,
+ WebURLRequest::TargetType target_type,
WebFrame* frame,
WebURLRequest* dest) {
// In the out-of-process case, we've received the URLRequestInfoData
@@ -124,7 +124,7 @@ bool CreateWebURLRequest(ppapi::URLRequestInfoData* data,
return false;
dest->initialize();
- dest->setTargetType(WebURLRequest::TargetIsObject);
+ dest->setTargetType(target_type);
dest->setURL(frame->document().completeURL(WebString::fromUTF8(
data->url)));
dest->setDownloadToFile(data->stream_to_file);

Powered by Google App Engine
This is Rietveld 408576698