Open Bug 1824761 Opened 2 years ago Updated 2 years ago

Troubleshoot.sys.mjs makes handling async errors difficult

Categories

(Toolkit :: General, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jimb, Unassigned)

References

Details

Troubleshoot.sys.mjs tries to accommodate asynchronous data providers, but the data collection loop in Troubleshoot.snapshot only handles errors thrown synchronously - if an async provider encounters errors in its callbacks, it has to handle those itself. Bug 1824638 shows that people do mess this up.

I think Troubleshoot.sys.mjs was written before promises. If we wrote it today the snapshot functions would all just be async functions, and then the framework could handle the promise rejections more holistically. This should be a relatively straightforward transformation.

See Also: → 1824638
Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.