Commit e965247e authored by bauerb@chromium.org's avatar bauerb@chromium.org
parent aa5879a5
...@@ -366,6 +366,14 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin( ...@@ -366,6 +366,14 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
status_value = ChromeViewHostMsg_GetPluginInfo_Status::kAllowed; status_value = ChromeViewHostMsg_GetPluginInfo_Status::kAllowed;
} }
// Allow full-page plug-ins for click-to-play.
if (status_value == ChromeViewHostMsg_GetPluginInfo_Status::kClickToPlay &&
!frame->parent() &&
!frame->opener() &&
frame->document().isPluginDocument()) {
status_value = ChromeViewHostMsg_GetPluginInfo_Status::kAllowed;
}
switch (status_value) { switch (status_value) {
case ChromeViewHostMsg_GetPluginInfo_Status::kNotFound: { case ChromeViewHostMsg_GetPluginInfo_Status::kNotFound: {
NOTREACHED(); NOTREACHED();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment