Bug 337002: NS_ERROR_FILE_NOT_FOUND error is dumped to console sometimes from sss_clearDisk, patch by logan <mozilla@gozer.org>, r=dietrich

git-svn-id: svn://10.0.0.236/trunk@199640 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2006-06-09 21:45:25 +00:00
parent 4e78ff47bf
commit 3f3f117901

View File

@@ -1672,14 +1672,22 @@ SessionStoreService.prototype = {
* delete session datafile and backup
*/
_clearDisk: function sss_clearDisk() {
try {
this._getSessionFile().remove(false);
var file = this._getSessionFile();
if (file.exists()) {
try {
file.remove(false);
}
catch (ex) { dump(ex + '\n'); } // couldn't remove the file - what now?
}
catch (ex) { dump(ex); } // couldn't remove the file - what now?
if (!this._lastSessionCrashed)
return;
try {
this._getSessionFile(true).remove(false);
}
catch (ex) { dump(ex); } // couldn't remove the file - what now?
catch (ex) { dump(ex + '\n'); } // couldn't remove the file - what now?
},
/**