Closed Bug 1485113 Opened 3 years ago Closed 3 years ago
History to keep a cache of download metadata throughout the session
46 bytes, text/x-phabricator-request
|Details | Review|
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+
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/02647608ed58 Change DownloadHistory to keep a cache of download metadata throughout the session. r=paolo
You need to log in before you can comment on or make changes to this bug.