nsAppShellService::RegisterTopLevelWindow(nsIWebShellWindow* aWindow)
nsAppShellService::RegisterTopLevelWindow(nsIXULWindow* aWindow)
nsAppShellService::RegisterTopLevelWindow(nsIWebShellWindow* aWindow){  nsresult rv;  nsIWebShellContainer* wsc;  rv = aWindow->QueryInterface(kIWebShellContainerIID, (void **) &wsc);  if (NS_SUCCEEDED(rv)) {    mWindowList->AppendElement(wsc);    NS_RELEASE(wsc);        nsIWindowMediator* service;		if (NS_SUCCEEDED(nsServiceManager::GetService(kWindowMediatorCID, kIWindowMediatorIID, (nsISupports**) &service ) ) )		{			service->RegisterWindow( aWindow);			nsServiceManager::ReleaseService(kWindowMediatorCID, service);		}  }  return rv;}