diff options
Diffstat (limited to 'WebKit/mac/Misc/WebDownload.m')
-rw-r--r-- | WebKit/mac/Misc/WebDownload.m | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/WebKit/mac/Misc/WebDownload.m b/WebKit/mac/Misc/WebDownload.m index 50a5777..2c53c1b 100644 --- a/WebKit/mac/Misc/WebDownload.m +++ b/WebKit/mac/Misc/WebDownload.m @@ -30,8 +30,8 @@ #import <Foundation/NSURLAuthenticationChallenge.h> #import <Foundation/NSURLDownload.h> -#import <JavaScriptCore/Assertions.h> #import <WebKit/WebPanelAuthenticationHandler.h> +#import <wtf/Assertions.h> #import "WebTypesInternal.h" @@ -96,6 +96,9 @@ - (void)downloadDidBegin:(NSURLDownload *)download { +#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) + [[NSProcessInfo processInfo] disableSuddenTermination]; +#endif [realDelegate downloadDidBegin:download]; } @@ -154,11 +157,17 @@ - (void)downloadDidFinish:(NSURLDownload *)download { +#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) + [[NSProcessInfo processInfo] enableSuddenTermination]; +#endif [realDelegate downloadDidFinish:download]; } - (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error { +#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) + [[NSProcessInfo processInfo] enableSuddenTermination]; +#endif [realDelegate download:download didFailWithError:error]; } |