summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 18:23:21 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 18:23:21 +0000
commit9dd9e83865f58d2c886f6be38575bdffc66fb074 (patch)
tree9ac8ac752f4e3a23a33a7428d23b7077ac947a98 /chrome/renderer
parent0a21bc3b65b20d0fb6e52bdbfdb9d0ff34e43a3c (diff)
downloadchromium_src-9dd9e83865f58d2c886f6be38575bdffc66fb074.zip
chromium_src-9dd9e83865f58d2c886f6be38575bdffc66fb074.tar.gz
chromium_src-9dd9e83865f58d2c886f6be38575bdffc66fb074.tar.bz2
Refuse to load extension-private plugins for pages that don't belong to that
extension. BUG=12960 TEST=none Review URL: http://codereview.chromium.org/118198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 6ad30d6..4e0ec16 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -1720,9 +1720,13 @@ WebPluginDelegate* RenderView::CreatePluginDelegate(
if (!PluginChannelHost::IsListening())
return NULL;
+ GURL policy_url;
+ if (webview->GetMainFrame())
+ policy_url = webview->GetMainFrame()->GetURL();
+
FilePath path;
render_thread_->Send(
- new ViewHostMsg_GetPluginPath(url, mime_type, clsid, &path,
+ new ViewHostMsg_GetPluginPath(url, policy_url, mime_type, clsid, &path,
actual_mime_type));
if (path.value().empty())
return NULL;