Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 139375) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -2462,6 +2462,9 @@ |
if (!doload) |
return; |
+ // Call to dispatchWindowLoadEvent can blow us from underneath. |
+ RefPtr<Document> protect(this); |
+ |
m_processingLoadEvent = true; |
ScriptableDocumentParser* parser = scriptableDocumentParser(); |