From cddbbdd208a51b7fb7bd357f38ce1ab09595a356 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Wed, 18 Dec 2024 04:11:27 -0800 Subject: [PATCH] fx128: fix broken database backup (#4931) Per https://bugzilla.mozilla.org/show_bug.cgi?id=1869060#c18, the backup utility was removed from the storage service and exposed durectly on the connection itself in fx128. Fixes: #4929 --- chrome/content/zotero/xpcom/db.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 8abdbe03c3..72aaada08e 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -1055,11 +1055,7 @@ Zotero.DBConnection.prototype.backupDatabase = async function (suffix, force) { if (DB_LOCK_EXCLUSIVE) { await this.queryAsync("PRAGMA main.locking_mode=NORMAL", false, { inBackup: true }); } - storageService.backupDatabaseFile( - Zotero.File.pathToFile(file), - PathUtils.filename(tmpFile), - Zotero.File.pathToFile(file).parent - ); + await this._connection.backup(tmpFile); } catch (e) { Zotero.logError(e);