Closed Bug 21628 Opened 25 years ago Closed 25 years ago

Implement nsIDirectoryService

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dougt, Assigned: dougt)

References

Details

(Whiteboard: "fixed, reviewed and tested" - dougt)

Need a service to replace nsSpecialSystemDirectory and nsFileLocations for use
with nsIFile.
Depends on: 21982
Status: NEW → ASSIGNED
Target Milestone: M13
got first cut of it implemented and checked into our branch.  Further work is
needed to support everything that nsSpecialSystemDirectory and nsFileLocations
did.
Target Milestone: M13 → M14
moving into the m14 bucket.
moving to m15
Target Milestone: M14 → M15
Suresh Duddi wrote:

  Warren Harris wrote:
  > 3. The "special" directory service implementations are indeed special
  > (as in "special education"). We saw one call to
  > nsSpecialSystemDirectory::nsSpecialSystemDirectory make 16 calls to
  > nsSpecialSystemDirectory::=, and most of the time there went to
  > GetWindowsFolder and then to GetCurrentProcessDirectory. These should
  > probably be called on demand and cached since I don't think they ever
  > change. I think the new directory service provider architecture (with
  > callbacks) should help here considerably.

  I agree. You should file a bug on this if this needs to get fixed for
  beta.
I have changes which will make this an extendable service.  I have tested on 
linux and the mac, and have been running this on windows for at least two weeks.  
It cleans up a memory leak as well.  needs pdt+ approval.
Keywords: beta1
Target Milestone: M15 → M9
I think you wanted TFV to be M14 not M9. Changing...
Target Milestone: M9 → M14
So why do you need this for beta1?  How big is the leak?
every Set() a nsLocalFile is lost.  which is not that much.  The bug for this 
leak was written up by beard:

http://bugzilla.mozilla.org/show_bug.cgi?id=25584

I change how it all works, and I this is the bug for the new implementation.
Whiteboard: "fixed, reviewed and tested" - dougt
Fixed checked in.,
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.