Closed Bug 108052 Opened 23 years ago Closed 22 years ago

nsJSContext destructor uses getService to shutdown; suggest using WeakRef

Categories

(SeaMonkey :: Preferences, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 105115
Future

People

(Reporter: depman1, Assigned: jst)

References

Details

this is causing warning msg when shutting down Mozilla. See bug 107391). reproduced in 10/27 debug mozilla build. 1. Set break points in nsWarning messages in nsComponentManager.cpp; nsComponentManagerImpl::GetService() and nsComponentManagerImpl::GetServiceByContractID() (currently lines 1750 & 2075). 2. Launch Mozilla with F5. 3. Quit Mozilla. 4. Press F5 until you see stack trace including destructor for nsJSContext() 5. Doubleclick on line for ~nsJSContext(): nsJSContext::~nsJSContext() line 414 + 28 bytes Result: In destructor for nsJSContext, creates nsIPref object by calling do_GetService() to unregister. Uses xpconnect to shutdown nsJSContext service. Suggest registering a weakReference and using that to shutdown.
Blocks: 107391
changed qa contact to depstein
QA Contact: sairuh → depstein
another one for jst@netscape.com.
Assignee: vidur → jst
Future for now...
Status: NEW → ASSIGNED
OS: Windows NT → All
Hardware: PC → All
Target Milestone: --- → Future
QA Contact: depstein → carosendahl
*** This bug has been marked as a duplicate of 105115 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.