Index: Source/WebCore/platform/network/mac/ResourceHandleMac.mm |
=================================================================== |
--- Source/WebCore/platform/network/mac/ResourceHandleMac.mm (revision 141117) |
+++ Source/WebCore/platform/network/mac/ResourceHandleMac.mm (working copy) |
@@ -357,6 +357,19 @@ |
return false; |
} |
+bool ResourceHandle::willLoadFromCache(ResourceRequest& request, Frame*) |
+{ |
+ request.setCachePolicy(ReturnCacheDataDontLoad); |
+ NSURLResponse *nsURLResponse = nil; |
+ BEGIN_BLOCK_OBJC_EXCEPTIONS; |
+ |
+ [NSURLConnection sendSynchronousRequest:request.nsURLRequest() returningResponse:&nsURLResponse error:nil]; |
+ |
+ END_BLOCK_OBJC_EXCEPTIONS; |
+ |
+ return nsURLResponse; |
+} |
+ |
CFStringRef ResourceHandle::synchronousLoadRunLoopMode() |
{ |
return CFSTR("WebCoreSynchronousLoaderRunLoopMode"); |