mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Removed Release of mTopLevelWidget in the handling of the "inGoAway" event. Fixes bug 3900; part of fix for bug 3676. Wants to be part of M3 build. r:pierre,sdagley. a:chofmann,cyeh.
This commit is contained in:
parent
6811d49530
commit
e4dcb184d6
@ -391,12 +391,6 @@ PRBool nsMacEventHandler::HandleMouseDownEvent(
|
||||
case inGoAway:
|
||||
{
|
||||
mTopLevelWidget->Destroy();
|
||||
/* terrible hack alert: this Release matches the Addref that was done when the
|
||||
window widget was created by the nsWebShellWindow. It'd be a lot cleaner to
|
||||
ask the webshellwindow to release its window, but I feel even worse about
|
||||
getting to the nsWebShellWindow from the nsWindow, so here goes:
|
||||
*/
|
||||
NS_RELEASE(mTopLevelWidget);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user