Michel Gutierrez wrote:
I'm trying to use the @mozilla.org/download-manager;1 service to download files. My entry is added to the download manager window, but with the message "Starting..." and the download does not actually start. Is there anything to be done to get get the download to start in addition to calling the addDownload method from nsIDownloadManager ?

The download manager service doesn't actually download files. It just shows their progress, basically. You need to initiate the download yourself, probably using webbrowserpersist. You also wouldn't call addDownload yourself normally. See this for an example on how to download files (it's the code for "Save link target as" and similar commands):

http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/ content/contentAreaUtils.js#411
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to