Open Bug 1282165 Opened 8 years ago Updated 2 years ago

Let DownloadTarget resolve a Promise to determine the final file name.

Categories

(Toolkit :: Downloads API, defect, P3)

defect

Tracking

()

People

(Reporter: aswan, Unassigned)

References

(Blocks 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1254327 +++

More details about how this capability may be used are available at bug 1254327.
I took a stab at adding this capability a while back, patches and the first review comments are still on the original bug, but from the review comments, it is clear that this is a big enough effort that it is worthy of its own bug on the download manager component.

I'm going to try to wipe all the dust off my original patches and address the review comments, then I'll put a revised patch up here.
Adding bug 1247791 as dependency. I took the liberty of changing this bug's description (apologies if that was inappropriate).
Blocks: 1247791
Summary: Let DownloadTarget invoke a callback to determine the file name. → Let DownloadTarget resolve a Promise to determine the final file name.
To give more details: 

the SaveAs dialog should open when the download is started, but the download may be finished before the user is done choosing the name, at which point the callback would still be unable to provide the final name, and Promise could be used instead.
I started on this over in bug 1254327 but haven't gotten back to those patches in over a year, and don't see it happening any time soon...
Assignee: aswan → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.