Closed Bug 1904146 Opened 3 months ago Closed 3 months ago

Update GetBackupFileInfo event handler in BackupUIParent to call sampleArchive

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: fchasen, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

Currently the GetBackupFileInfo event handle in BackupUIParent is just a stub. Once Bug 1901132 lands it should call sampleArchive and return an object with the date and encryption boolean.

Summary: Update GetBackupFileInfo event handle in BackupUIParent to call sampleArchive → Update GetBackupFileInfo event handler in BackupUIParent to call sampleArchive
Blocks: 1904147
Assignee: nobody → fchasen
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P3

This implements getting the information needed to show the date of a backup in the restore component and showing the password input if that backup is encrypted.

  • Adds a getBackupFileInfo method to BackupService that will call sampleArchive for a passed backup file and update the backupFileInfo in the state with a subset of that info.
  • Update the GetBackupFileInfo event handler in BackupUIParent to use the new getBackupFileInfo method.
Attachment #9409577 - Attachment description: WIP: Bug 1904146 - Add getBackupFileInfo method to BackupService to handle GetBackupFileInfo events. → Bug 1904146 - Add getBackupFileInfo method to BackupService to handle GetBackupFileInfo events. r?#backup-reviewers!
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/edf305a8036e Add getBackupFileInfo method to BackupService to handle GetBackupFileInfo events. r=mconley

Backed out for causing mochitests failures in browser_settings_turn_on_scheduled_backups.js.

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/backup/tests/browser/browser_settings_turn_on_scheduled_backups.js | A promise chain failed to handle a rejection: invalid array length - stack: getBackupFileInfo@resource:///modules/backup/BackupService.sys.mjs:2537:51
Flags: needinfo?(fchasen)
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/68c1de4d6b7d Add getBackupFileInfo method to BackupService to handle GetBackupFileInfo events. r=mconley
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Flags: needinfo?(fchasen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: