Closed
Bug 317345
Opened 20 years ago
Closed 20 years ago
nsLocalFile(OSX)::IsHidden is broken garbage
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8.1
People
(Reporter: mark, Assigned: mark)
References
Details
(Keywords: fixed1.8.0.1, fixed1.8.1)
Attachments
(1 file)
1.12 KB,
patch
|
jaas
:
review+
sfraser_bugs
:
superreview+
dveditz
:
approval1.8.0.1+
dveditz
:
approval1.8.1+
|
Details | Diff | Splinter Review |
In nsLocalFileOSX.cpp, nsLocalFile::IsHidden returns whatever it feels like returning, without regard for whether a file is actually hidden or not. The call to FSGetCatalogInfo requests kFSCatInfoNodeFlags, but IsHidden doesn't actually care about or use node flags. It does care about Finder attributes, but it's not getting those. FSGetCatalogInfo is filling in the wrong portion of the FSCatalogInfo struct (the nodeFlags field), and when IsHidden is looking at the finderInfo field, it's looking at leftover stack garbage. Since we don't actually care about nodeFlags in IsHidden, I'm removing kFSCatInfoNodeFlags and replacing it with kFSCatInfoFinderInfo.
nsIFile::IsHidden is used by at least netwerk/base, xpfe/components/filepicker, and xpfe/components/search.
Assignee | ||
Comment 1•20 years ago
|
||
Attachment #203843 -
Flags: superreview?(sfraser_bugs)
Attachment #203843 -
Flags: review?(joshmoz)
Updated•20 years ago
|
Attachment #203843 -
Flags: superreview?(sfraser_bugs) → superreview+
Attachment #203843 -
Flags: review?(joshmoz) → review+
Assignee | ||
Comment 2•20 years ago
|
||
Checked in on the trunk. This is risk-free and ensures that the apps properly treat hidden files as hidden, and more importantly, visible files as visible.
Status: NEW → RESOLVED
Closed: 20 years ago
Flags: blocking1.8.0.1?
Resolution: --- → FIXED
Assignee | ||
Comment 3•20 years ago
|
||
*** Bug 314579 has been marked as a duplicate of this bug. ***
Comment 4•20 years ago
|
||
Comment on attachment 203843 [details] [diff] [review]
Use kFSCatInfoFinderInfo to obtain Finder attributes
a=dveditz
Attachment #203843 -
Flags: approval1.8.1+
Attachment #203843 -
Flags: approval1.8.0.1+
Comment 5•20 years ago
|
||
When this gets checked into the branches please add the appropriate fixed1.8.0.1 and fixed1.8.1 keywords to the bug
Flags: blocking1.8.1+
Flags: blocking1.8.0.1?
Flags: blocking1.8.0.1+
Updated•20 years ago
|
Target Milestone: --- → mozilla1.8.1
Comment 7•20 years ago
|
||
Mark: Is there any easy way for QA to verify this bug?
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•