Closed
Bug 253125
Opened 20 years ago
Closed 14 years ago
cleanup gratuitous use of NS_ERROR_FACTORY_REGISTER_AGAIN
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: darin.moz, Unassigned)
References
()
Details
(Keywords: helpwanted)
cleanup gratuitous use of NS_ERROR_FACTORY_REGISTER_AGAIN. nsSample.js throws NS_ERROR_FACTORY_REGISTER_AGAIN from registerSelf for no apparent reason other than to demonstrate that it is possible to do so. The comments should be improved to explain that this is an optional feature of component registration. Because no such comments exist, other JS components appear to have copied the pattern. In many cases it is unnecessary overhead. throwing NS_ERROR_FACTORY_REGISTER_AGAIN has the effect that: <shaver> rather: you will be called again _if_ another component is registered so, there's also a subtle bug in the implementation since it's possible that no other component is ever registered.
Reporter | ||
Updated•20 years ago
|
Keywords: helpwanted
Target Milestone: --- → Future
Reporter | ||
Updated•18 years ago
|
Assignee: darin → nobody
QA Contact: xpcom
Target Milestone: Future → ---
Updated•14 years ago
|
Comment 1•14 years ago
|
||
All of the programmatic registration code is gone, long live manifests!
You need to log in
before you can comment on or make changes to this bug.
Description
•