Closed
Bug 183895
Opened 22 years ago
Closed 20 years ago
Implement [nsIProperties.getKeys] for the profile directory service
Categories
(Core Graveyard :: Profile: BackEnd, enhancement)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: timeless, Assigned: timeless)
Details
I use xpcshell to do my analysis of stuff and this feature would help me.
Comment 1•22 years ago
|
||
*** Bug 183897 has been marked as a duplicate of this bug. ***
Summary: Implement [nsIProperties.getKeys] for "@mozilla.org/file/directory_service;1" → Implement [nsIProperties.getKeys] for the profile directory service
Comment 2•22 years ago
|
||
The profile directory service is only a provider, i.e., it implements nsIDirectoryServiceProvider, not nsIProperties. If you're asking for what I think you are: * Implement nsDirectoryService::GetKeys(). In order to make that work: * Have a means for directory service to get a list of keys from each of its registered providers. Oh no! Here comes nsIDirectoryServiceProvider3 :-(
yeah, it took me a long time to figure that out. I think we could cheat. if all directory providers implemented nsIProperties::getKeys and returned error_not_supported or something for the other nsIProperties methods that should be good enough. the directoryservice would of course QI each provider to nsIProperties and use that. it think it'd even be possible to handle moving from nsIProperties to nsIDirectoryServiceProvider3 at a later time. But this is really the price you pay for not having a good api design up front, freezing early and often ;-(. I'm certainly open to ideas, but I don't want to see nsIDirectoryServiceProvider9 next december...
Comment 4•22 years ago
|
||
Timeless - there is no need for a lecture about api freezing. The point is we had a good API design that supported exactly the customers it was designed to support and was truly extensible. However, after we froze the interface, people wanted to return sets of nsIFile's(nsIDirectoryService2). This new interface, i would agree was frozen quite quickly. Regarding this bug, what your requesting goes against the whole point of the directory service providers which is to allow lazy creation of nsIFile object. ie. providers do not have to create the nsIFile object until it is requested. given this design, the nsDirectoryServcie implementation of nsIProperties::GetKeys, should return the current KNOWN keys - no all possible keys. dougt
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•