Index: Source/WebCore/xml/parser/XMLDocumentParser.cpp |
=================================================================== |
--- Source/WebCore/xml/parser/XMLDocumentParser.cpp (revision 139380) |
+++ Source/WebCore/xml/parser/XMLDocumentParser.cpp (working copy) |
@@ -194,6 +194,11 @@ |
doEnd(); |
+ // doEnd() call above can detach the parser and null out its document. |
+ // In that case, we just bail out. |
+ if (isDetached()) |
+ return; |
+ |
// doEnd() could process a script tag, thus pausing parsing. |
if (m_parserPaused) |
return; |