Open Bug 1612339 Opened 5 years ago Updated 2 years ago

Improve error handling and reporting in FontFace

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

There are a few issues:

  1. FontFace::EnsurePromise can fail to create mLoaded but then still dereference it. It should instead take an ErrorResult arg that it passes through to Promise::Create and immediately bail out if it fails.
  2. Errors are propagated through as nsresult values. It might be better to propagate them through as ErrorResults so that we can provide a useful message describing the error at the point when we detect that we have an error. We might need something else if we might need to reject multiple promises with the same error?
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.