Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index 5045aeeda408497c361a98c5375b226bae6a7db3..55115796776f5a85956240de087dea4594bba556 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -1230,6 +1230,14 @@ void FrameLoader::startLoad(FrameLoadRequest& frameLoadRequest, FrameLoadType ty |
return; |
} |
+ // FIXME: This is an odd set of steps to shut down parsing and it's unclear why it works. |
+ // It's also unclear why other steps don't work. |
+ if (m_frame->document()->parsing()) { |
+ finishedParsing(); |
+ m_frame->document()->setParsingState(Document::FinishedParsing); |
+ } |
+ m_frame->document()->setReadyState(Document::Complete); |
+ |
if (m_provisionalDocumentLoader) { |
m_provisionalDocumentLoader->stopLoading(); |
if (m_provisionalDocumentLoader) |