Closed Bug 120931 Opened 23 years ago Closed 23 years ago

win32: Mozilla does not remember the last directory used to load

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: dan, Assigned: law)

Details

(Whiteboard: fix-in-hand)

Attachments

(1 file, 1 obsolete file)

This should be thought of as a "sister bug" to bug 115148, recently fixed, in which Mozilla formerly failed to be "smart" about remembering what directory you're saving files to. That's fixed now, but the behavior in *loading* files (in the "Open File..." menu item, in the file pick dialog for form submissions, etc.) still remains in the old, annoying behavior of always using the system default no matter where you've actually been getting files from recently. This can be a big nuisance when you're trying to open or upload a large number of files from the same place. (Perhaps both this and bug 115148 should be considered different aspects of bug 27493, either as dupes of it or dependencies of it.)
Confirming on Windows 98, 0.9.7, Build ID: 2002011803.
Status: UNCONFIRMED → NEW
Ever confirmed: true
hm, i think this would be a dup of 27493... if not, could you pls clarify why? *** This bug has been marked as a duplicate of 27493 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
If this is a dupe, why wasn't bug 115148 a dupe as well? That one dealt specifically with the save directory, while this one deals directly with the load directory, but bug 27493 deals with both. Apparently the save directory status was regarded as a separate issue, because that was fixed while load directories weren't.
The save directory used to be remembered, thus bug 115148 was a regression.....
This patch keeps a copy of the last-used directory and starts the file-picker there unless another directory is specified via the "displayDirectory" attribute. I've tested this patch on Win2000, but the bug doesn't manifest itself there (Win2K remembers the last-used directory for us). Can somebody with Win98 apply the patch and try it there? We need this bug, distinct from bug 27943, because that bug is one of those utopian, grandiose things that will never be implemented (no offense). This problem is due to a fix I made a while back to stop us from resetting the current directory to the one last used via the file picker (which was *not* the way to implement this feature). P.S. This also fixes a problem with the mSelectedType field where it isn't being initialized properly.
reopening; see my previous comment
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Target Milestone: --- → mozilla0.9.9
Attached patch revised patchSplinter Review
I removed some debugging stuff and added code to update mDisplayDirectory with the last-used directory. Charley Manske alerted me that Composer is dependent on that.
Attachment #66165 - Attachment is obsolete: true
Comment on attachment 66204 [details] [diff] [review] revised patch r=cmanske great! works for me. It turns out Composer is not dependent on this, but I think setting mDisplayDirectory is a good thing.
Attachment #66204 - Flags: review+
Whiteboard: fix-in-hand
fixed
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
vrfy...has been fine for some time. :)
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: