mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 709328 - Remove always true argument. r=mak77. a=js-only.
This commit is contained in:
parent
15c1ec3864
commit
1e18150781
@ -375,7 +375,7 @@ FormHistory.prototype = {
|
||||
this.log("Initialization failed: " + e);
|
||||
// If dbInit fails...
|
||||
if (e.result == Cr.NS_ERROR_FILE_CORRUPTED) {
|
||||
this.dbCleanup(true);
|
||||
this.dbCleanup();
|
||||
FormHistory.prototype.dbConnection = this.dbOpen();
|
||||
this.dbInit();
|
||||
} else {
|
||||
@ -885,17 +885,14 @@ FormHistory.prototype = {
|
||||
* Called when database creation fails. Finalizes database statements,
|
||||
* closes the database connection, deletes the database file.
|
||||
*/
|
||||
dbCleanup : function (backup) {
|
||||
this.log("Cleaning up DB file - close & remove & backup=" + backup)
|
||||
dbCleanup : function () {
|
||||
this.log("Cleaning up DB file - close & remove & backup")
|
||||
|
||||
// Create backup file
|
||||
if (backup) {
|
||||
let storage = Cc["@mozilla.org/storage/service;1"].
|
||||
getService(Ci.mozIStorageService);
|
||||
|
||||
let backupFile = this.dbFile.leafName + ".corrupt";
|
||||
storage.backupDatabaseFile(this.dbFile, backupFile);
|
||||
}
|
||||
let storage = Cc["@mozilla.org/storage/service;1"].
|
||||
getService(Ci.mozIStorageService);
|
||||
let backupFile = this.dbFile.leafName + ".corrupt";
|
||||
storage.backupDatabaseFile(this.dbFile, backupFile);
|
||||
|
||||
this._dbFinalize();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user