Index: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp |
index cc5344d24e8ff07e7371e4340fbfbfc544fc5005..def2ba772799a5e2785c6f471d28ddc25d358608 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp |
@@ -385,6 +385,7 @@ void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded() |
ASSERT(m_document); |
if (m_document->frame() && !m_isParsingFragment) |
m_document->frame()->loader().dispatchDocumentElementAvailable(); |
+ // dispatchDocumentElementAvailable might have invalidated m_document. |
} |
void HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML(AtomicHTMLToken* token) |