- speculative fix for http://bugs.webkit.org/show_bug.cgi?id=15805
<rdar://problem/
5510779> crashes in isLoadingMultipartContent
* loader/DocumentLoader.cpp: (WebCore::DocumentLoader::isLoadingMultipartContent):
Instead of asserting the frame loader is non-0, return false if it is 0.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27379
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-02 Darin Adler <darin@apple.com>
+
+ Reviewed by Mitz.
+
+ - speculative fix for http://bugs.webkit.org/show_bug.cgi?id=15805
+ <rdar://problem/5510779> crashes in isLoadingMultipartContent
+
+ * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::isLoadingMultipartContent):
+ Instead of asserting the frame loader is non-0, return false if it is 0.
+
2007-11-02 Darin Adler <darin@apple.com>
Reviewed by Mitz.
bool DocumentLoader::isLoadingMultipartContent() const
{
- ASSERT(m_mainResourceLoader);
- return m_mainResourceLoader->isLoadingMultipartContent();
+ return m_mainResourceLoader && m_mainResourceLoader->isLoadingMultipartContent();
}
bool DocumentLoader::startLoadingMainResource(unsigned long identifier)