Closed Bug 96385 Opened 24 years ago Closed 24 years ago

nsChromeRegistry::ConvertChromeURL does GetInstallRoot a bunch of times

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: sfraser_bugs, Assigned: hyatt)

Details

On startup, nsChromeRegistry::ConvertChromeURL calls rv = GetInstallRoot(mInstallRoot); a whole bunch of times, because we haven't got a profile yet. This does directory and nsIFile stuff that isn't exactly cheap; it seems that we could cache mInstallRoot until the state of 'mProfileInitialized' changes.
Actually I think that code is just legacy and can be removed. ccarlen long ago hooked up the chrome registry to get a callback when the profile gets picked, so ConvertChromeURL doesn't need to have any of that code any more.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.5
Hmmm, somebody came along and fixed this. Thanks to my anonymous benefactor!
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
I think dp was that anonymous benefactor... /be
So is the one remaining place where we call GetInstallRoot() still required, or can this all be removed. http://lxr.mozilla.org/mozilla/source/rdf/chrome/src/nsChromeRegistry.cpp#2864
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.