Closed
Bug 270565
Opened 20 years ago
Closed 20 years ago
crash if I try to create components one by one
Categories
(Core :: XPConnect, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: surkov, Assigned: dbradley)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
for(var i in Components.classes){
if(i=="@mozilla.org/generic-factory;1") continue;
//see the bug https://bugzilla.mozilla.org/show_bug.cgi?id=270562
try{
var q=Components.classes[i].createInstance();
}catch(e){}
}
Reproducible: Always
Steps to Reproduce:| Assignee | ||
Comment 1•20 years ago
|
||
Is this really an XPConnect issue? There are many components that don't behave well when you use createInstance. I think the issue is they're expected to be constructed and handed out from other components and not constructed as free standing objects. I imagine there's a slew of them, and if it's a real problem, file bugs on the individual components. If there is a problem in iterating the classes collection or similar issue that points to XPConnect, please reopen this.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: crach if I try to create components one by one → crash if I try to create components one by one
almost all of the bugs about crashers like this are filed by me (rginda filed a few). i believe some bugs even have detailed blacklists. arguably xpcom/xpconnect should have made it much easier for components to say they wanted to be singletons so that people couldn't crash them like this, but otherwise this is not a fault in xpcom/xpconnect (well, generic factory is a fault in xpcom...)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•