WebCore:
[WebKit-https.git] / WebCore / loader / mac / ResourceLoaderMac.mm
index d6ee9236fcf26696add80b4de47c18b3c2217c3e..25fe7bd65b8680859b35a6074d7ce004a2f50354 100644 (file)
@@ -37,6 +37,8 @@ namespace WebCore {
 
 NSCachedURLResponse* ResourceLoader::willCacheResponse(ResourceHandle*, NSCachedURLResponse* response)
 {
+    if (!m_sendResourceLoadCallbacks)
+        return 0;
     return frameLoader()->client()->willCacheResponse(documentLoader(), identifier(), response);
 }