Index: third_party/WebKit/Source/core/html/PluginDocument.cpp |
diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp |
index e64e048cb9d8263d62fa53cbe26f5c5e31a6f4eb..05fb4040e8d4b3b6a38681db48bb07df43b56454 100644 |
--- a/third_party/WebKit/Source/core/html/PluginDocument.cpp |
+++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp |
@@ -103,11 +103,13 @@ void PluginDocumentParser::createDocumentStructure() |
m_embedElement->setAttribute(widthAttr, "100%"); |
m_embedElement->setAttribute(heightAttr, "100%"); |
m_embedElement->setAttribute(nameAttr, "plugin"); |
+ m_embedElement->setAttribute(idAttr, "plugin"); |
m_embedElement->setAttribute(srcAttr, AtomicString(document()->url().string())); |
m_embedElement->setAttribute(typeAttr, document()->loader()->mimeType()); |
body->appendChild(m_embedElement); |
toPluginDocument(document())->setPluginNode(m_embedElement.get()); |
+ m_embedElement->focus(); |
document()->updateLayout(); |