if (nsnull != mParent) { mParent->RemoveChild(this); }
nsWebShell::Destroy(){  nsresult rv = NS_OK;  // Stop any URLs that are currently being loaded...  Stop();  SetContainer(nsnull);  SetObserver(nsnull);  SetDocLoaderObserver(nsnull);  if (nsnull != mDocLoader) {    mDocLoader->SetContainer(nsnull);  }  NS_IF_RELEASE(mContentViewer);  // Destroy our child web shells and release references to them  DestroyChildren();  return rv;}