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)

defect

Tracking

()

RESOLVED WONTFIX
mozilla1.9alpha1

People

(Reporter: benjamin, Assigned: benjamin)

Details

Attachments

(1 file)

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.
Attachment #161904 - Flags: review?(darin)
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+
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
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 → ---
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
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.
Component: Startup and Profile System → XRE Startup
Flags: review+
Priority: -- → P3
Product: Firefox → Toolkit
Target Milestone: Future → mozilla1.9alpha1
Version: Trunk → unspecified
This sounds like more trouble than it's worth at this point.
Status: REOPENED → RESOLVED
Closed: 20 years ago18 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.

Attachment

General

Created:
Updated:
Size: