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)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla18
| Tracking | Status | |
|---|---|---|
| firefox18 | --- | fixed |
People
(Reporter: dougt, Assigned: emk)
References
Details
Attachments
(2 files)
|
5.75 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
|
2.54 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
+++ 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.
| Assignee | ||
Comment 1•13 years ago
|
||
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 | ||
Comment 2•13 years ago
|
||
Attachment #659016 -
Flags: review?(doug.turner)
| Reporter | ||
Updated•13 years ago
|
Attachment #659012 -
Flags: review?(doug.turner) → review+
| Reporter | ||
Updated•13 years ago
|
Attachment #659016 -
Flags: review?(doug.turner) → review+
| Reporter | ||
Comment 3•13 years ago
|
||
thanks masatoshi!
| Assignee | ||
Comment 4•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=8318c4c986df
This is a Windows-only cahge.
Keywords: checkin-needed
Comment 5•13 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #4)
> https://tbpl.mozilla.org/?tree=Try&rev=8318c4c986df
Green on Try.
https://hg.mozilla.org/integration/mozilla-inbound/rev/66f34fb03d41
https://hg.mozilla.org/integration/mozilla-inbound/rev/f298ffd6a36d
Should this have tests?
Flags: in-testsuite?
Keywords: checkin-needed
| Reporter | ||
Comment 6•13 years ago
|
||
No.
Updated•13 years ago
|
Flags: in-testsuite? → in-testsuite-
| Reporter | ||
Comment 7•13 years ago
|
||
(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.).
Comment 8•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/66f34fb03d41
https://hg.mozilla.org/mozilla-central/rev/f298ffd6a36d
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 9•12 years ago
|
||
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.
Description
•