[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:17:38 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 552ae831b536fb5c8457c9dd17113222369d3041
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Jun 7 22:59:45 2002 +0000
2002-06-07 Kenneth Kocienda <kocienda at apple.com>
Reviewed by: Darin Adler
Fix for this bug:
Radar 2948819 (Disk cache emptying can be cut off by quitting program)
We kick a thread to delete the disk cache (in order for the cache emptying
function to return immediately). This involves moving the disk cache
directory aside and creating a new (empty) disk cache directory. If a user
quits the apps before the aside directory is completely deleted, it is
orphaned.
This patch does a check upon next startup for such orphaned files and
resumes the delete operation.
* Database.subproj/IFURLFileDatabase.m:
(-[IFURLFileDatabase open])
* Misc.subproj/IFNSFileManagerExtensions.h:
* Misc.subproj/IFNSFileManagerExtensions.m:
(-[NSFileManager _IF_deleteBackgroundRemoveLeftoverFiles:])
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/Misc.subproj/WebFileDatabase.m b/WebKit/Misc.subproj/WebFileDatabase.m
index 1d15b65..96e7d0a 100644
--- a/WebKit/Misc.subproj/WebFileDatabase.m
+++ b/WebKit/Misc.subproj/WebFileDatabase.m
@@ -749,6 +749,9 @@ static void databaseInit()
tmp = [[NSFileManager defaultManager] fileSystemRepresentationWithPath:sizeFilePathString];
sizeFilePath = strdup(tmp);
usage = [self readSizeFile];
+
+ // remove any leftover turds
+ [manager _IF_deleteBackgroundRemoveLeftoverFiles:path];
}
return isOpen;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list