Closed Bug 8330 Opened 25 years ago Closed 25 years ago

When file downloaded, file name lost

Categories

(SeaMonkey :: UI Design, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cpratt, Assigned: law)

References

()

Details

(Whiteboard: [HELP WANTED])

Attachments

(1 file)

Build ID: 1999061608
Platform: Windows NT

To reproduce:
- Go to the above URL to download Communicator 4.61 English
- When the Download button is clicked, the Unknown File Type box comes up
- Click Save File
- Note that the file navigation dialog shows no name for the file - it should
Necko landing...
I'm moving this to target M9, Necko will be enabled somewhere during late M8 or
early M9.  We will need to get on this and it cannot be postponed past the M9
milestone.
Changing all Networking Library/Browser bugs to Networking-Core component for
Browser.

Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do
this in a bulk change.  If this happens, I will fix. ;-)
Assignee: gagan → don
Status: ASSIGNED → NEW
Component: Networking-Core → XPApps
Not networking related. Whoever is throwing the Save As dialog box needs to
query for the file name from the URI using GetFileName(&filename). Not sure if
XPApps gets it... but they'd know...
Assignee: don → law
Target Milestone: M9 → M10
Status: NEW → ASSIGNED
Whiteboard: [HELP WANTED]
Assignee: law → vxir
Status: ASSIGNED → NEW
Assignee: vxir → don
The attached file fixes the bug, and it adds a starting download directory
to the user preferences.  When this patch is applied, this new feature won't
work (but this bug will be fixed), because I also need an enhancement request
done (there is a bug filed but my computer just crashed so I forgot the
number). It has to do with
nsIFileSpecWithUIImpl.cpp

This patch should be able to be applied independant the other bug and vice
versa.

You need not throw the whole file in the cvs tree.  Here are the changes:

At the top I include some more files:
#include "nsIFileSpecWithUI.h"
#include "nsRepository.h"
#include "nsIPref.h"
static NS_DEFINE_CID(kPrefCid,NS_PREF_CID);

And in the middle I rewrote the function:
nsStreamTransfer::SelectFileAndTransferLocation( nsIURI *aURL, nsIDOMWindow
*parent )

If you see anything wrong, then feel free to reassign the bug to me with
a short explanation...

Thanks,
Andrew
Target Milestone: M11 → M12
Assignee: don → law
Reassigning to law since don is the black hole of bugz
Status: NEW → ASSIGNED
I incorporated the provided fixes (more or less).  This only seems to work on
Windows, however (I don't think the other platforms support either
SetDisplayDirectory or using the suggested name).

Looks like maybe this is going away anyway, in lieu of nsIFilePicker.
I've fixed this on our end.  nsIFileWidget implementation is deficient on Unix
and Mac.  What do I do now?  Sit on this one till nsIFilePicker is done, or
reassign?
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Marking RESOLVED since the requisite changes to my code have been made and it
works on Windows.  There are already bugs (I think) relating to this problem on
Linux.  That bug has prompted the development of the nsIFilePicker solution,
which will ultimately fix the Mac too.
QA Contact: paulmac → sairuh
Status: RESOLVED → VERIFIED
verified as fixed with 1999-12-02-11-m12 on NT.
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: