[Conkeror] [PATCH] save_uri: optionally use a temporary download file
Jeremy Maitin-Shepard
jeremy at jeremyms.com
Wed Feb 11 12:29:11 PST 2009
David Kettler <kettler at internode.on.net> 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
More information about the Conkeror
mailing list