Open Bug 1751629 Opened 3 years ago Updated 2 years ago

Use cps-callbacks for ensuring DownloadLastDir-operations have completed during testing

Categories

(Toolkit :: Downloads API, task, P3)

Desktop
All
task

Tracking

()

People

(Reporter: JanH, Unassigned)

References

Details

There are some tests (e.g. this one, or the new one added by bug 1726801) that, after running some DownloadLastDir-based operation, spin the event loop to ensure that that operation has completed.

Because the underlying content pref service operations do support a callback for when that operation has completed, both setFile() and history clearing should in some way make use of that to enable tests to explicitly wait for those operations to complete instead of generically just spinning the event loop.

Severity: -- → S4
Priority: -- → P3

I'm adding a promise for tests to the clear history path in Bug 1824117

You need to log in before you can comment on or make changes to this bug.