David Kettler <[email protected]> writes:

[snip]

> I added another property, finished_function, to download_info.  It
> would be possible to use download_finished_hook, but that's probably
> inappropriate for internal functionality like this.  It would be
> possible to subsume the shell_command stuff into finished_function.

I think it makes sense to use download_finished_hook, even though this
is functionality of the download manager itself, since it adds less
overhead and I don't see any reason not to.  The shell command handling
is done specially because the download buffer displays information about
the shell command.

> The file rename will foil download-delete-target.  I was undecided as
> to whether that should be fixed or if it's better as is.  The deletion uses
>   download_manager_service.removeDownload(this.id);
> so it will either need to be handled separately, or the state of the
> nsIDownloadManager will need fiddling.

The built-in file saving uses a temporary file as well; perhaps this can
somehow make use of some of the same facilities for handling that?

-- 
Jeremy Maitin-Shepard
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to