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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.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: check for subframe 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
« 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: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index fd57f0896db531a7193cdecc7813417a7254bb60..ea9160df7c427fbf5adff10423739d0e07666fe4 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2757,10 +2757,14 @@ int32_t PepperPluginInstanceImpl::Navigate(
WebURLRequest web_request;
if (!CreateWebURLRequest(&completed_request,
- WebURLRequest::TargetIsMainFrame,
+ frame->parent() ?
yzshen1 2013/09/03 21:04:26 (forgive me if I misunderstand this) I thought wh
Bernhard Bauer 2013/09/03 21:15:09 Hm, I think we don't have a target in all cases, i
yzshen1 2013/09/03 21:19:42 I don't know the answer. I think we could look int
Bernhard Bauer 2013/09/03 21:59:27 Hm, I think so; see https://code.google.com/p/chro
+ WebURLRequest::TargetIsSubframe :
+ WebURLRequest::TargetIsMainFrame,
frame,
- &web_request))
+ &web_request)) {
return PP_ERROR_FAILED;
+ }
+
web_request.setFirstPartyForCookies(document.firstPartyForCookies());
web_request.setHasUserGesture(from_user_action);
« 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