Closed Bug 241206 Opened 21 years ago Closed 3 years ago

nsIFilePicker.displayDirectory should not share its directory with consumers

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 268311

People

(Reporter: timeless, Unassigned)

Details

Attachments

(1 file)

The current ownership model means that if you do: fp.displayDirectory=path; path.initWithDirectory(...); the filepicker's display directory changes. IMO that's wrong. The code also has a tendency to crash if you assign null...
Attachment #146685 - Flags: superreview?(rbs)
Attachment #146685 - Flags: review?(ere)
+ mDisplayDirectory = do_CreateInstance("@mozilla.org/file/local;1"); there's this Clone method on nsIFile...
Comment on attachment 146685 [details] [diff] [review] per description (-uwp6) I don't know nsIFile well, but I trust Biesi that Clone would do the trick in a cleaner way.
Attachment #146685 - Flags: superreview?(rbs)
Attachment #146685 - Flags: review?(ere)
Attachment #146685 - Flags: review-

Is this still relevant?

The bug assignee didn't login in Bugzilla in the last 7 months.
:enndeakin, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: timeless → nobody
Flags: needinfo?(enndeakin)

Looks like he already fixed this in a different bug.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(enndeakin)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: