2008-05-21 Beth Dakin <bdakin@apple.com>
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 May 2008 03:41:03 +0000 (03:41 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 May 2008 03:41:03 +0000 (03:41 +0000)
        Reviewed by Anders.

        Fix for <rdar://problem/5848161> REGRESSION (r31438?): Crash
        beneath ResourceHandle::setDefersLoading while running fast/loader/
        simultaneous-reloads-assert.html (null CFURLConnection)

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::ResourceHandle::setDefersLoading): Added simple null-
        check.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@33993 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/cf/ResourceHandleCFNet.cpp

index 0c4cbfa580b3a424164054a8f84e7625e59076e7..f1a5c8b289bd91bc9fd0f15d59dec04033eeb065 100644 (file)
@@ -1,3 +1,15 @@
+2008-05-21  Beth Dakin  <bdakin@apple.com>
+
+        Reviewed by Anders.
+
+        Fix for <rdar://problem/5848161> REGRESSION (r31438?): Crash 
+        beneath ResourceHandle::setDefersLoading while running fast/loader/
+        simultaneous-reloads-assert.html (null CFURLConnection)
+
+        * platform/network/cf/ResourceHandleCFNet.cpp:
+        (WebCore::ResourceHandle::setDefersLoading): Added simple null-
+        check.
+
 2008-05-21  Timothy Hatcher  <timothy@apple.com>
 
         Adds the Request and Response headers to the Resource view.
index e101a85057fd9305bffafb393dacf6d82c185c36..fd2601c5d31ebf10954c300d1eaa3262bfd625a7 100644 (file)
@@ -415,6 +415,9 @@ void ResourceHandle::setClientCertificate(const String& host, CFDataRef cert)
 
 void ResourceHandle::setDefersLoading(bool defers)
 {
+    if (!d->m_connection)
+        return;
+
     if (defers)
         CFURLConnectionHalt(d->m_connection.get());
     else