mWindowList->AppendElement(aWindow);
nsresult rv;
nsAppShellService::RegisterTopLevelWindow(nsIXULWindow* aWindow){   mWindowList->AppendElement(aWindow);   if(mWindowMediator)      mWindowMediator->RegisterWindow(aWindow);   return NS_OK;}