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