Closed
Bug 264093
Opened 20 years ago
Closed 18 years ago
Combine chrome registry and protocol handler on one object
Categories
(Toolkit :: Startup and Profile System, defect, P3)
Toolkit
Startup and Profile System
Tracking
()
RESOLVED
WONTFIX
mozilla1.9alpha1
People
(Reporter: benjamin, Assigned: benjamin)
Details
Attachments
(1 file)
|
20.68 KB,
patch
|
Details | Diff | Splinter Review |
I can get rid of some overhead and a pesky static var by combining nsChromeRegistry and nsChromeProtocolHandler on one object. I also solved the problems with reentrant GS of the chrome registry during first-startup.
| Assignee | ||
Comment 1•20 years ago
|
||
| Assignee | ||
Updated•20 years ago
|
Attachment #161904 -
Flags: review?(darin)
Comment 2•20 years ago
|
||
Comment on attachment 161904 [details] [diff] [review] combine nsChromeRegistry and nsChromeProtocolHandler >Index: nsChromeFactory.cpp >- { "Chrome Protocol Handler", >+ { "Chrome Registry", why this change? is the class name bound to the ClassID or ContractID? r=darin
Attachment #161904 -
Flags: review?(darin) → review+
| Assignee | ||
Comment 3•20 years ago
|
||
Fixed on trunk. No need to land this on any branches, 'tis just minor code refactoring.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → After Firefox 1.0
| Assignee | ||
Comment 4•20 years ago
|
||
Lalala, this appears to have caused leaking of domwindows->the world... I'm going to look at the startup sequencing.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 5•20 years ago
|
||
so, are you sure that with the component registered under 2 contractids, you still have only one of them? it seems to me that the service manager will create one instance per contractid, unless I'm misreading the code
| Assignee | ||
Comment 6•20 years ago
|
||
Yes. The hashtables do contractid -> nsFactoryEntry (which is CID-keyed). http://lxr.mozilla.org/mozilla/source/xpcom/components/nsComponentManager.h#311 Registering multiple contractids for a service happens all over the place.
Comment 7•20 years ago
|
||
ah, great. thanks.
| Assignee | ||
Updated•20 years ago
|
Component: Startup and Profile System → XRE Startup
Flags: review+
Priority: -- → P3
Product: Firefox → Toolkit
Target Milestone: Future → mozilla1.9alpha1
Version: Trunk → unspecified
| Assignee | ||
Comment 8•18 years ago
|
||
This sounds like more trouble than it's worth at this point.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 18 years ago
Resolution: --- → WONTFIX
Component: XRE Startup → Startup and Profile System
QA Contact: benjamin → startup
You need to log in
before you can comment on or make changes to this bug.
Description
•