Closed Bug 36965 Opened 25 years ago Closed 24 years ago

Preferences should use nsIFile

Categories

(SeaMonkey :: Preferences, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dougt, Assigned: alecf)

References

Details

(Whiteboard: Fix in hand)

In many places prefs uses nsFileSpec which is no longer supported nsPref: NTDLL! 77f7629c() nsDebug::Assertion(const char * 0x100bb474, const char * 0x100bb470, const char * 0x100bb444, int 0x0000033c) line 191 + 13 bytes nsFileSpec::nsFileSpec() line 828 + 34 bytes nsFileLocator::GetFileLocation(nsFileLocator * const 0x00d16a40, unsigned int 0x00010013, nsIFileSpec * * 0x0012fc5c) line 606 pref_InitInitialObjects() line 1226 + 61 bytes PREF_Init(const char * 0x00000000) line 463 + 5 bytes nsPref::StartUp(nsPref * const 0x00ccb4d0) line 306 + 7 bytes nsPref::GetInstance() line 271
Status: NEW → ASSIGNED
Target Milestone: --- → M17
I'd like to propose a transitional method to do this, so that we have GetPathPref and GetFilePref() at the same time, and phase out GetPathPref - the reason is that all mail paths originate from GetPathPref, so switching to nsIFile is going to be a big task for mail. Adding putterman to the list because he expressed interest in this.
Target Milestone: M17 → Future
prefs to mcafee
Status: ASSIGNED → NEW
Target Milestone: Future → ---
argh... didn't work the last time. pardon the spam. ->mcafee
Assignee: neeti → mcafee
Component: Preferences: Backend → Preferences
I've started to work on this in my local tree, I'll try to post a patch here in the next few days.
back to alecf, post patch and pass on to dveditz if necessary.
Assignee: mcafee → alecf
moving to M18 for the moment? How important is this that this gets in this release?
Target Milestone: --- → M18
nominating for nsbeta3 - the fewer consumers of nsIFileSpec, the smaller the bloat.
Status: NEW → ASSIGNED
Keywords: nsbeta3
Blocks: 41600
I have this ready in my tree. Thanks to conrad@ingress.com for adding the persistent file descriptor to nsILocalFile
Whiteboard: Fix in hand
Blocks: 42102
cc'ing conrad because he's working with the patch right now
ok, the new API is in, temporarilyi as getFileXPref and setFileXPref When conrad and I have converted all consumers, I'll swap in the new APIs.
actually, I'm going to mark this fixed because the conversion will happen in bug 42102
marking fixed, as i assumed alecf meant to do (bugzilla coulda been have its usual fits, so mighta missed your change. :-)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
heh, I forget to do that all the time...
backend fix, so rubberstamp vrfy.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.