Not reviewed, emergency test fix.
[WebKit-https.git] / WebCore / loader / FrameLoader.cpp
index 26d4df9d7ec3d23dab46b0d4585e60a630171473..90ee04fd767ed7f2f4f5043c46ddcb3c05c3f9eb 100644 (file)
@@ -4200,7 +4200,8 @@ void FrameLoader::mainReceivedCompleteError(DocumentLoader* loader, const Resour
     loader->setPrimaryLoadComplete(true);
     m_client->dispatchDidLoadMainResource(activeDocumentLoader());
     checkCompleted();
-    checkLoadComplete();
+    if (m_frame->page())
+        checkLoadComplete();
 }
 
 void FrameLoader::mainReceivedError(const ResourceError& error, bool isComplete)