Bug 1907136 - Don't forget to clear the last backup filename / timestamp preference caches when deleting the last backup. r=backup-reviewers,kpatenio

Differential Revision: https://phabricator.services.mozilla.com/D216201
This commit is contained in:
Mike Conley
2024-07-11 14:11:47 +00:00
parent 5928b5a75d
commit fb791f4457
2 changed files with 124 additions and 4 deletions

View File

@@ -3166,7 +3166,11 @@ export class BackupService extends EventTarget {
await IOUtils.remove(backupFilePath, { ignoreAbsent: true });
this.#_state.lastBackupDate = null;
Services.prefs.clearUserPref(LAST_BACKUP_TIMESTAMP_PREF_NAME);
this.#_state.lastBackupFileName = "";
Services.prefs.clearUserPref(LAST_BACKUP_FILE_NAME_PREF_NAME);
this.stateUpdate();
} else {
lazy.logConsole.log(