Index: chrome/renderer/plugins/chrome_plugin_placeholder.cc |
diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.cc b/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
index 9aebe5215da662df3e1854dd5562e827041a84b8..bfeca82907874e4621273e608d44bc895809e739 100644 |
--- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
+++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
@@ -281,8 +281,9 @@ void ChromePluginPlaceholder::OnCancelledDownloadingPlugin() { |
void ChromePluginPlaceholder::PluginListChanged() { |
if (!GetFrame() || !plugin()) |
return; |
- WebDocument document = GetFrame()->top()->document(); |
- if (document.isNull()) |
+ blink::WebSecurityOrigin top_level_origin = |
+ GetFrame()->top()->securityOrigin(); |
+ if (top_level_origin.isNull()) |
return; |
ChromeViewHostMsg_GetPluginInfo_Output output; |
@@ -290,7 +291,7 @@ void ChromePluginPlaceholder::PluginListChanged() { |
render_frame()->Send( |
new ChromeViewHostMsg_GetPluginInfo(routing_id(), |
GURL(GetPluginParams().url), |
- document.url(), |
+ GURL(top_level_origin.toString()), |
mime_type, |
&output)); |
if (output.status.value == status_->value) |