[Project_owners] nsIDownloadManager.addListener global for all downloads

Neil neil at parkwaycc.co.uk
Fri Oct 23 02:44:50 PDT 2009

Brian King wrote:

> var ret = dlMgr.addDownload(0, source, target, name, null, null, null, 
> null, browserPersist);
> dlMgr.addListener(myDownloadListener); // This is the listener that is 
> global for all downloads, but I only want it for this one.
> browserPersist.progressListener = ret;

In SeaMonkey's progress dialogs we had to save the download object of 
interest so that we could compare it against the one that the global 
listener receives.

More information about the Project_owners mailing list