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 3ad71eab3de3bd7d47b00ad19cb2c5120718e966..68d525a388b2d652aa753f2bea704e438d2ff9d2 100644 |
--- a/third_party/WebKit/Source/core/html/PluginDocument.cpp |
+++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp |
@@ -91,10 +91,8 @@ void PluginDocumentParser::createDocumentStructure() |
return; |
HTMLHtmlElement* rootElement = HTMLHtmlElement::create(*document()); |
- rootElement->insertedByParser(); |
document()->appendChild(rootElement); |
- frame->loader().dispatchDocumentElementAvailable(); |
- frame->loader().runScriptsAtDocumentElementAvailable(); |
+ rootElement->insertedByParser(); |
if (isStopped()) |
return; // runScriptsAtDocumentElementAvailable can detach the frame. |