Open Bug 929391 Opened 11 years ago Updated 1 year ago

Use Downloads.getTemporaryDownloadsDirectory instead of GetDownloadDirectory in nsHelperAppService.cpp

Categories

(Toolkit :: Downloads API, task, P3)

task

Tracking

()

People

(Reporter: Paolo, Unassigned)

References

(Blocks 1 open bug)

Details

While this doesn't prevent us from decommissioning nsIDownloadManager, using Downloads.getTemporaryDownloadsDirectory instead of GetDownloadDirectory in nsHelperAppService.cpp will help in unifying the code paths. We will need an XPCOM call to be able to use the function.
i would like to work on this bug. Can you assign me the bug
I wonder if paolo planned to mentor this bug
Assignee: nobody → sahukariganesh2
Flags: needinfo?(paolo.mozmail)
Yeah, glad to mentor! Good choice Ganesh, as this builds upon the IDL skills. Since we want to remove nsIDownloadManager and nsDownloadManager.cpp from the tree, we'll need a new interface and component located in the "jsdownloads" folder. This will allow the getTemporaryDownloadsDirectory function to be called indirectly from C++. The component would be JavaScript-implemented, the reverse of the nsIDebug2 case. DownloadLegacy.js implementing nsITransfer is an example of this. For simplicity on the C++ side, the IDL interface would be callback-based, while Downloads.getTemporaryDownloadsDirectory is Promise-based. mozIAsyncHistory.isURIVisited and mozIVisitedStatusCallback are examples of this callback-based pattern. Feel free to start by taking a look at the code, and let me know if you have any questions!
Mentor: paolo.mozmail
Flags: needinfo?(paolo.mozmail)
Type: defect → task
Mentor: paolo.mozmail

The bug assignee didn't login in Bugzilla in the last 7 months.
:mak, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: sahukariganesh2 → nobody
Flags: needinfo?(mak)
Severity: normal → S3
Flags: needinfo?(mak)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.