mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Fix chimera's crash on shutdown problem. This is caused by popups being over-released because of a close message. NPOB
This commit is contained in:
parent
5494a6f2c1
commit
ff30b1df16
@ -396,6 +396,12 @@ nsresult nsCocoaWindow::StandardCreate(nsIWidget *aParent,
|
||||
mWindow = [[NSWindow alloc] initWithContentRect:rect styleMask:features
|
||||
backing:NSBackingStoreBuffered defer:NO];
|
||||
|
||||
// Popups will receive a "close" message when an app terminates
|
||||
// that causes an extra release to occur. Make sure popups
|
||||
// are set not to release when closed.
|
||||
if (features == 0)
|
||||
[mWindow setReleasedWhenClosed: NO];
|
||||
|
||||
// create a quickdraw view as the toplevel content view of the window
|
||||
NSQuickDrawView* content = [[[NSQuickDrawView alloc] init] autorelease];
|
||||
[content setFrame:[[mWindow contentView] frame]];
|
||||
@ -1717,7 +1723,6 @@ void StopResizing ( )
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
- (void)windowDidResize:(NSNotification *)aNotification
|
||||
{
|
||||
if ( !mGeckoWindow->IsResizing() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user