Closed
Bug 55115
Opened 24 years ago
Closed 24 years ago
convert chrome registry to use nsIFile (not nsFileSpec)
Categories
(Core Graveyard :: Skinability, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla0.9
People
(Reporter: dr, Assigned: dr)
References
()
Details
(Keywords: helpwanted, relnote, verifyme, Whiteboard: relnote-user)
Attachments
(1 file)
nsFileSpec is obsolete and causes problems with drive mappings on win32. migrate chrome registry to newer nsIFile.
targeting, setting qa contact to john morrison (who's babysitting 36532 and 54947), adding keywords. relnote needed: this ain't getting fixed for rtm. it should be noted that the workaround for the bustage this causes is not to use mozilla with mapped drives in windows.
Status: NEW → ASSIGNED
Keywords: helpwanted,
relnote
QA Contact: blakeross → jrgm
Target Milestone: --- → mozilla1.0
Updated•24 years ago
|
Whiteboard: relnote-user
just to make clear, the relnote needed is something like: using mozilla with mapped drives in windows causes crashes on startup, the problem being that the chrome registry is trying to access files through obsolete code. this will be fixed rsn.
Comment 3•24 years ago
|
||
Er, the issue is the reverse actually: You can launch from a mapped drive (e.g., S:\mozilla), but not from a UNC name (e.g. \\myserver\apps\mozilla). No?
triaging for post-rtm. this and related bugs (36532, 54947) may have to be pushed back to mozilla1.0 if this doesn't mesh with the 0.9 milestone plan, or is too difficult.
Severity: normal → major
Priority: P3 → P2
Target Milestone: mozilla1.0 → mozilla0.9
hyatt claims that conrad and dougt came through and whacked all this code to fix some similar problems on the mac. jrgm: can you verify whether this is actually fixed?
Keywords: verifyme
Comment 7•24 years ago
|
||
yes, ccarlen did a filespec-ectomy in revs 1.162 and 1.164 of nsChromeRegistry.cpp. I do see one lingering use that got left behind (see URL field for this bug). Judging by the stacks in the other bugs, they are likely fixed, but I don't have any great desire to go testing for crashes when I know there is still more filespec-ectomy to come.
Hmm... Not sure if this code, or hyatt's old code, ever executes at all. It seems like all the entries in dist/bin/chrome/installed-chrome.txt are of type "url" rather than "path," and this code only executes if the type is "path." Also, if it does execute, I'm not sure the string munging (adding "jar:" to the beginning and "!/" to the end) does everything it's supposed to. I'll try to figure this out tomorrow. cc'ing brendan who helped me grok the new interfaces.
Comment 10•24 years ago
|
||
Assuming that chromeLocation is a native path, the code looks about right. And yes, it is alot bigger. You could use GetURL off of nsIFile instead of creating a necko url parser. However, this is a new addition and has not been implemented fully on mac or unix. I believe that ccarlen has diffs for this somewhere. I am ccing him.
Assignee | ||
Comment 11•24 years ago
|
||
Sounds good (we were wondering why there wasn't such an API), but I think I'll stick with the current model until ccarlen's diffs get checked in and see some use. This code runs on startup, and we know that nsIFileURL works. That's good enough for me, for the moment. I'll be tracking this anyway, to make sure I don't foul something up.
Comment 12•24 years ago
|
||
r=jag
Assignee | ||
Comment 14•24 years ago
|
||
fixed (cvs rev. 1.175).
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•