Index: Source/core/html/HTMLPlugInElement.cpp |
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp |
index d57dbf011482ce04e1963674130255f894d2e3bc..59312d7f0b222b36f2af8394e34bee856f0c265c 100644 |
--- a/Source/core/html/HTMLPlugInElement.cpp |
+++ b/Source/core/html/HTMLPlugInElement.cpp |
@@ -441,6 +441,14 @@ NPObject* HTMLPlugInElement::getNPObject() |
return m_NPObject; |
} |
+void HTMLPlugInElement::setPluginFocus(bool focused) |
+{ |
+ Widget* focusedWidget = existingPluginWidget(); |
+ // NPAPI flash requires to receive messages when web contents focus changes. |
+ if (getNPObject() && focusedWidget) |
+ focusedWidget->setFocus(focused, WebFocusTypeNone); |
+} |
+ |
bool HTMLPlugInElement::isImageType() |
{ |
if (m_serviceType.isEmpty() && protocolIs(m_url, "data")) |