Skip to content
Snippets Groups Projects
Commit 2f3afa94 authored by rods%netscape.com's avatar rods%netscape.com
Browse files

Fixed the termination of the app when a window closes

parent 0fb5fd0b
No related branches found
No related tags found
No related merge requests found
......@@ -281,19 +281,21 @@ nsAppShellService::RegisterTopLevelWindow(nsIWidget* aWindow)
if (data == nsnull)
rv = NS_ERROR_NULL_POINTER;
else {
#if 0
nsWebShellWindow* window = (nsWebShellWindow *) data;
nsIWebShellWindow * webShellWin;
rv = window->QueryInterface(kIWebShellWindowIID, (void **) &webShellWin);
if (NS_SUCCEEDED(rv)) {
mWindowList->AppendElement(webShellWin);
}
#else
nsWebShellWindow* window = (nsWebShellWindow *) data;
// nsCOMPtr<nsIWebShellContainer> wsc(window); DRaM
/*nsIWebShellContainer* wsc;
nsIWebShellContainer* wsc;
rv = window->QueryInterface(kIWebShellContainerIID, (void **) &wsc);
if (NS_SUCCEEDED(rv))
mWindowList->AppendElement(wsc);
*/
#endif
}
return rv;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment