Closed Bug 788924 Opened 13 years ago Closed 13 years ago

Device Storage - Default location for device storage on windows show use SHGetFolderPath

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
Tracking Status
firefox18 --- fixed

People

(Reporter: dougt, Assigned: emk)

References

Details

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #788588 +++ SHGetFolderPath has CSIDL_MYMUSIC, CSIDL_MYPICTURES, and CSIDL_MYVIDEO. We should use that instead.
Per the source-code comment, I need Doug's permission to add dierctory location. https://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsDirectoryService.cpp?rev=3d9424eb6eb4#546 So I'll ask you for review.
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #659012 - Flags: review?(doug.turner)
Attachment #659012 - Flags: review?(doug.turner) → review+
Attachment #659016 - Flags: review?(doug.turner) → review+
thanks masatoshi!
Keywords: checkin-needed
No.
Flags: in-testsuite? → in-testsuite-
(It could, but in testing mode, we redirect all of the locations to a temporary location so that we can control what files are actually present. It would kind of be hard to create a test for something like this, but I imagine it would end up being an existence test. That is, "is the pictures device storage object backed back a directory when not in testing mode". I am not sure that is very useful.).
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Just an FYI, on Win7+, the default locations for where you would save these file types are defined in Library settings. The user's default "My XYZ" folder may not be the correct location. I'm going to expose the library values in bug 837932, probably through a new set of dir svc ids.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: