diff options
Diffstat (limited to 'WebKit/mac/Misc/WebCache.mm')
-rw-r--r-- | WebKit/mac/Misc/WebCache.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WebKit/mac/Misc/WebCache.mm b/WebKit/mac/Misc/WebCache.mm index a60159f..46fb341 100644 --- a/WebKit/mac/Misc/WebCache.mm +++ b/WebKit/mac/Misc/WebCache.mm @@ -30,6 +30,7 @@ #import "WebViewInternal.h" #import <WebCore/ApplicationCacheStorage.h> #import <WebCore/Cache.h> +#import <WebCore/CrossOriginPreflightResultCache.h> @implementation WebCache @@ -107,9 +108,12 @@ WebCacheModel cacheModel = [WebView _cacheModel]; [WebView _setCacheModel:WebCacheModelDocumentViewer]; [WebView _setCacheModel:cacheModel]; - + // Empty the application cache. WebCore::cacheStorage().empty(); + + // Empty the Cross-Origin Preflight cache + WebCore::CrossOriginPreflightResultCache::shared().empty(); } + (void)setDisabled:(BOOL)disabled |