Closed
Bug 96385
Opened 24 years ago
Closed 24 years ago
nsChromeRegistry::ConvertChromeURL does GetInstallRoot a bunch of times
Categories
(Core :: XUL, defect)
Core
XUL
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.
| Assignee | ||
Comment 1•24 years ago
|
||
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
| Assignee | ||
Comment 2•24 years ago
|
||
Hmmm, somebody came along and fixed this. Thanks to my anonymous benefactor!
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 3•24 years ago
|
||
I think dp was that anonymous benefactor...
/be
Comment 4•24 years ago
|
||
I would have loved to, but it wasnt me. It was conrad.
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/rdf/chrome/src&command=DIFF_FRAMESET&file=nsChromeRegistry.cpp&rev2=1.211&rev1=1.210
Comment 5•24 years ago
|
||
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.
Description
•