Closed Bug 1905157 Opened 3 months ago Closed 2 months ago

Throw constant values when recovering and map those constants to localized error messages.

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: fchasen, Assigned: sthompson)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

We should convert the exceptions that are throw during the recoverFromBackupArchive process to throw constant values inside of the cause property of the errors. Those constants should be in ArchiveUtils if possible.

Will also need to map the constants to the right localized error message string to display in Bug 1905154 or a generic error message string.

Those constants should be in ArchiveUtils if possible.

I thought about it a bit more, and considering that we might want those constants to be available inside some of our UI components, we might want to create a new non .sys module that just contains constants. BackupConstants.mjs or something.

No longer blocks: 1904949

Bug 1904949 added a bunch of cause values for exceptions thrown in BackupService, so that part is done. This bug is about making sure those constants get mapped to friendly error messages to users.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → sthompson
Attachment #9411870 - Attachment description: WIP: Bug 1905157 - Display profile recovery error messages in UI → Bug 1905157 - Display profile recovery error messages in UI r=#backup-reviewers
Status: NEW → ASSIGNED
See Also: → 1908526
Duplicate of this bug: 1905156
Pushed by sthompson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/898c9afa27d2 Display profile recovery error messages in UI r=backup-reviewers,fluent-reviewers,mconley,bolsson

Backed out for causing build bustages

Backout link

Push with failures

Failure log

Flags: needinfo?(sthompson)

I was explicitly packaging a single JS file using both moz.build and jar.mn in order to use the file from different contexts. I did not know that this type of duplication was discouraged.

I am working on an alternative solution to packaging the single JS file once.

Flags: needinfo?(sthompson)
Pushed by sthompson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d1e54375ddf5 Display profile recovery error messages in UI r=backup-reviewers,fluent-reviewers,mconley,bolsson,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: