nsAppShellService::UnregisterTopLevelWindow(nsIWidget* aWindow)
nsAppShellService::UnregisterTopLevelWindow(nsIXULWindow* aWindow)
nsAppShellService::UnregisterTopLevelWindow(nsIWidget* aWindow){  nsresult rv;  void* data;  aWindow->GetClientData(data);  if (data == nsnull)    rv = NS_ERROR_NULL_POINTER;  else {    nsWebShellWindow* window = (nsWebShellWindow *) data;    nsIWebShellContainer* wsc;    rv = window->QueryInterface(kIWebShellContainerIID, (void **) &wsc);    if (NS_SUCCEEDED(rv)) {      mWindowList->RemoveElement(wsc);      NS_RELEASE(wsc);    }  }  return rv;}