Profile backup web worker needs error handling plumbing
Categories
(Firefox :: Profile Backup, task, P3)
Tracking
()
| 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.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
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.
Updated•1 year ago
|
Comment 3•1 year ago
|
||
| bugherder | ||
Description
•