Closed Bug 1485113 Opened 3 years ago Closed 3 years ago

Change DownloadHistory to keep a cache of download metadata throughout the session

Categories

(Toolkit :: Downloads API, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [fxsearch])

Attachments

(1 file)

In bug 1468972 we're moving page annotations to be asynchronous. This means that DownloadHistory needs to be updated to better handle the async nature.

To maintain performance of DOM updates, and to avoid potential race conditions, we need to have a cache of the relevant download metadata so that the database updates happen in the background, but we have sync access for updating the UI.

See also bug 1480049 for some discussion.
This avoids the need to do async lookups in the database when updating the UI.

MozReview-Commit-ID: BXe88ay0csO
Comment on attachment 9002882 [details]
Bug 1485113 - Change DownloadHistory to keep a cache of download metadata throughout the session.

:Paolo Amadini has approved the revision.
Attachment #9002882 - Flags: review+
Blocks: 1485322
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/02647608ed58
Change DownloadHistory to keep a cache of download metadata throughout the session. r=paolo
https://hg.mozilla.org/mozilla-central/rev/02647608ed58
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.