Index: Source/WebCore/html/parser/HTMLDocumentParser.cpp |
=================================================================== |
--- Source/WebCore/html/parser/HTMLDocumentParser.cpp (revision 139357) |
+++ Source/WebCore/html/parser/HTMLDocumentParser.cpp (working copy) |
@@ -146,6 +146,11 @@ |
if (m_scriptRunner) |
document()->setReadyState(Document::Interactive); |
+ // Setting the ready state above can fire mutation event and detach us |
+ // from underneath. In that case, just bail out. |
+ if (isDetached()) |
+ return; |
+ |
attemptToRunDeferredScriptsAndEnd(); |
} |