Index: chrome/renderer/plugins/shadow_dom_plugin_placeholder.cc |
diff --git a/chrome/renderer/plugins/shadow_dom_plugin_placeholder.cc b/chrome/renderer/plugins/shadow_dom_plugin_placeholder.cc |
index 8441f7690c6a63036feefd389eccd1bddd61136a..ae437787999705c8610a1aa1f0c169f5717ebf2d 100644 |
--- a/chrome/renderer/plugins/shadow_dom_plugin_placeholder.cc |
+++ b/chrome/renderer/plugins/shadow_dom_plugin_placeholder.cc |
@@ -42,6 +42,8 @@ scoped_ptr<blink::WebPluginPlaceholder> CreateShadowDOMPlaceholderForPluginInfo( |
if (!ShadowDOMPluginPlaceholderEnabled()) |
return nullptr; |
+ blink::WebSecurityOrigin top_level_origin = frame->top()->securityOrigin(); |
+ DCHECK(!top_level_origin.isNull()); |
std::string orig_mime_type = orig_params.mimeType.utf8(); |
// TODO(jbroman): Investigate whether browser plugin needs special handling. |
ChromeViewHostMsg_GetPluginInfo_Output output; |
@@ -49,7 +51,7 @@ scoped_ptr<blink::WebPluginPlaceholder> CreateShadowDOMPlaceholderForPluginInfo( |
render_frame->Send( |
new ChromeViewHostMsg_GetPluginInfo(render_frame->GetRoutingID(), |
GURL(orig_params.url), |
- frame->top()->document().url(), |
+ GURL(top_level_origin.toString()), |
orig_mime_type, |
&output)); |
#else |