Closed Bug 1906169 Opened 1 year ago Closed 1 year ago

Profile backup web worker needs error handling plumbing

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: sthompson, Assigned: sthompson)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

The Firefox profile backup code is throwing errors with a "cause" for use by the UI and other components to understand the context of the errors. https://bugzilla.mozilla.org/show_bug.cgi?id=1904949

The profile backup code includes service workers, but the additional plumbing required to surface errors' "cause" within the workers out to the main process is not complete. The service workers (particularly Archive.worker.mjs) need this plumbing in order to accurately tell the UI about specific issues that may have been detected within the service workers' operations.

Severity: -- → N/A
Priority: -- → P3
See Also: → 1904949
Whiteboard: [fidefe-device-migration]
Summary: Profile backup service workers need error handling plumbing → Profile backup web worker needs error handling plumbing

Some of the Firefox profile backup code is executed within a web worker, so errors thrown in the worker do not automatically maintain their full context when caught in the main process.

This change creates a BackupError for throwing errors with causes specific to Firefox profile backup. The new error type is configured to work with the PromiseWorker machinery in the Firefox codebase in order to serialize and deserialize error details across the worker boundary.

Assignee: nobody → sthompson
Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9db70c9ed11a Error plumbing for profile backup web worker r=backup-reviewers,mconley
Status: ASSIGNED → RESOLVED
Closed: 1 year 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: