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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1168913002: Use top frame's origin when checking content settings for plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address thestig's nit Created 5 years, 4 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/test/data/flash_object.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 84eae435c58988cf66c930b08386f38124a17e9f..933c72916def3096815e1d8b8400e67f7f22037d 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1993,9 +1993,10 @@ blink::WebPlugin* RenderFrameImpl::createPlugin(
WebPluginInfo info;
std::string mime_type;
bool found = false;
- Send(new FrameHostMsg_GetPluginInfo(
- routing_id_, params.url, frame->top()->document().url(),
- params.mimeType.utf8(), &found, &info, &mime_type));
+ WebString top_origin = frame->top()->securityOrigin().toString();
+ Send(new FrameHostMsg_GetPluginInfo(routing_id_, params.url, GURL(top_origin),
+ params.mimeType.utf8(), &found, &info,
+ &mime_type));
if (!found)
return NULL;
« no previous file with comments | « chrome/test/data/flash_object.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698