return NS_OK;
nsCOMPtr<nsIDocShellTreeNode> docShellParentAsNode(do_QueryInterface(mParent));  if (docShellParentAsNode) { docShellParentAsNode->RemoveChild(this); }  if (nsnull != mDocLoader) { mDocLoader->SetContainer(nsnull); }  mContentViewer = nsnull;   DestroyChildren(); return rv;
NS_IMETHODIMP nsWebShell::Destroy(){  nsresult rv = NS_OK;  //Fire unload event before we blow anything away.  rv = FireUnloadEvent();  nsDocShell::Destroy();  SetContainer(nsnull);  return NS_OK;}