Closed Bug 1901308 Opened 3 months ago Closed 1 month ago

Display an error in the turn-on dialog if there are issues with toggling encryption or setting the parent directory

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: kpatenio, Assigned: sthompson, NeedInfo)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

Enabling Encryption
Normally, we would avoid password requirement issues before we can even call BackupService.enableEncryption. However, there is a possibility that something goes awry anyways during this step. Therefore, we should:

  • Catch any potential errors and visually display an error message
  • If an error was caught from a dialog (ex. "turn on", "add password" dialogs), we likely want to keep the dialog open until the user tries again without issue, or until they press the Cancel button

Disabling Encryption
In the rare situation where we attempt to disable encryption for a backup that was never encrypted in the first place, we throw an error. It's not known at the moment if we really want to show an error or not.

Setting Parent Dir
For BackupService.setParentDirPath, the function may be supplied a invalid folder or a folder that was deleted before confirming dialog options. We likely want to:

  • Catch invalid file paths and visually display an error on the caller widget (turn on dialog, or backup-settings)
  • If the caller widget is a dialog, do not close it until the user chooses another folder, or until they press the Cancel button

We expect this feature to be tested and have an entry in Storybook.

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [fidefe-device-migration]

Cross-posting mconley's review comment from Phabricator:

in the event that there's an error here, we're likely going to want to display that in the turn-on-scheduled-backups dialog, which means keeping it open until enabling resolves. So we might need to adjust this to use a sendQuery from the child actor, and not close the dialog until a positive response is received.

Summary: Display an error in the turn-on dialog if there are issues with enabling encryption or setting the parent directory → Display an error in the turn-on dialog if there are issues with toggling encryption or setting the parent directory
Assignee: nobody → sthompson

Currently, clicking "confirm" buttons on modals in the profile backup settings menu will always close the modals regardless of whether the operation succeeded or failed. In the case of errors, users don't know that something went wrong. It's better to keep the modals open and display an error so that the user knows what to do next and can try to fix the issue, if applicable.

Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bd72ed21a114
Show profile backup errors and keep modals open r=backup-reviewers,fluent-reviewers,firefox-desktop-core-reviewers ,mconley,bolsson
Attachment #9417355 - Attachment description: Bug 1901308 - Show profile backup errors and keep modals open r=#backup-reviewers → Bug 1901308 - Show profile backup errors and keep modals open r=#backup-reviewers!
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4134d4f1c8b7
Show profile backup errors and keep modals open r=backup-reviewers,fluent-reviewers,firefox-desktop-core-reviewers ,mconley,bolsson
Regressions: 1911904
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: