Closed Bug 1396581 Opened 7 years ago Closed 7 years ago

Allow retrieving DownloadHistoryList objects that show private downloads

Categories

(Toolkit :: Downloads API, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: Paolo, Assigned: mikedeboer)

References

Details

Attachments

(1 file, 1 obsolete file)

Retrieving a DownloadHistoryList that includes private downloads is required by the front-end view in bug 1354532. I'm moving Mike's existing patch to this bug.
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Comment on attachment 8904251 [details] Bug 1396581 - Allow retrieving DownloadHistoryList objects that show private downloads. https://reviewboard.mozilla.org/r/176028/#review181078 ::: toolkit/components/jsdownloads/src/DownloadHistory.jsm:69 (Diff revision 1) > * @rejects JavaScript exception. > */ > - getList() { > - if (!this._promiseList) { > - this._promiseList = Downloads.getList(Downloads.PUBLIC).then(list => { > + getList({type = Downloads.PUBLIC} = {}) { > + let key = type; > + > + if (!this._listPromises[key]) { nit: I'm not sure I understand the reason to reassign type to key, it just seems to increase code footprint with micro benefits.
Attachment #8904251 - Flags: review?(mak77) → review+
Attachment #8904251 - Attachment is obsolete: true
Attachment #8904251 - Attachment is obsolete: false
Attachment #8904251 - Attachment is obsolete: true
Hi Marco, the previous push was done by Paolo, which means I can't take over that MozReview ID and push to it :/ So that's why you need to r+ the patch again, I'm afraid.
Comment on attachment 8904477 [details] Bug 1396581 - Allow retrieving DownloadHistoryList objects that show private downloads. https://reviewboard.mozilla.org/r/176330/#review181232
Attachment #8904477 - Flags: review?(mak77) → review+
Pushed by mdeboer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f12d13ff72de Allow retrieving DownloadHistoryList objects that show private downloads. r=mak
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: