Closed Bug 34094 Opened 24 years ago Closed 24 years ago

no windows appear after profile manager is dismissed

Categories

(SeaMonkey :: General, defect, P1)

PowerPC
Mac System 8.5
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Brade, Assigned: beard)

Details

(Keywords: smoketest)

On Mac, no matter how you dismiss the profile manager (keystroke or mouseclick), 
and no matter if you create a new profile or not, you don't get any windows.
Severity: normal → blocker
Keywords: smoketest
Priority: P3 → P1
Target Milestone: --- → M15
Sounds like a XUL issue to me. Console output, brade?
I've got a fix for this in my tree. The idea is to only create 1 nsToolkit per 
thread, as rpotts did on Windows. Otherwise, we seem to have a problem where the 
nsToolkit repeater that processes PLEvents gets shut off, and events no longer 
get processed. Here're the patches:

Index: mozilla/widget/src/mac/nsAppShell.h
===================================================================
RCS file: /cvsroot/mozilla/widget/src/mac/nsAppShell.h,v
retrieving revision 1.24
diff -r1.24 nsAppShell.h
35a36
> #include "nsCOMPtr.h"
41c42
< class nsToolkit;
---
> class nsIToolkit;
55c56
<     auto_ptr<nsToolkit>            mToolKit;
---
>     nsCOMPtr<nsIToolkit>           mToolkit;

Index: mozilla/widget/src/mac/nsAppShell.cpp
===================================================================
RCS file: /cvsroot/mozilla/widget/src/mac/nsAppShell.cpp,v
retrieving revision 1.34
diff -r1.34 nsAppShell.cpp
80c80,83
< 	mToolKit = auto_ptr<nsToolkit>( new nsToolkit() );
---
> 	nsresult rv;
> 	rv = NS_GetCurrentToolkit(getter_AddRefs(mToolkit));
> 	if (NS_FAILED(rv))
> 		return rv;
82c85,86
< 	mMacPump = auto_ptr<nsMacMessagePump>( new nsMacMessagePump(mToolKit.get(), 
mMacSink.get()) );
---
> 	nsIToolkit* toolkit = mToolkit.get();
> 	mMacPump = auto_ptr<nsMacMessagePump>( new nsMacMessagePump(static_cast<
nsToolkit*>(toolkit), mMacSink.get()) );
sweet.  get it reviewed, check it in.  a=granrose
Fixes have been checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified fixed with 062808 build OS 9
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.