(oh my! where was superkevin on this one?)
<rdar://problem/
4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
More "free nil checking" we lost in the transition from ObjC to C++
* loader/mac/FrameLoaderMac.mm:
(WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
(WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17671
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-11-08 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Dave Harrison, Oliver, and Darin
+ (oh my! where was superkevin on this one?)
+
+ <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
+
+ More "free nil checking" we lost in the transition from ObjC to C++
+
+ * loader/mac/FrameLoaderMac.mm:
+ (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
+ (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
+
2006-11-08 Anders Carlsson <acarlsson@apple.com>
Reviewed by Adam.
// FIXME: Poor method name; also, why is this not part of startProvisionalLoad:?
void FrameLoader::startLoading()
{
+ if (!m_provisionalDocumentLoader)
+ return;
+
m_provisionalDocumentLoader->prepareForLoadStart();
if (m_mainResourceLoader)
return;
RefPtr<DocumentLoader> pdl = m_provisionalDocumentLoader;
-
+ if (!pdl)
+ return;
+
// If we've received any errors we may be stuck in the provisional state and actually complete.
NSError *error = pdl->mainDocumentError();
if (!error)