InitFrameData();
if (mScriptGlobal) { mScriptGlobal->SetDocShell(nsnull); mScriptGlobal = nsnull; } if (mScriptContext) { mScriptContext->SetOwner(nsnull); mScriptContext = nsnull; }
nsWebShell::~nsWebShell(){   Destroy();  // Cancel any timers that were set for this loader.  CancelRefreshURITimers();  ++mRefCnt; // following releases can cause this destructor to be called             // recursively if the refcount is allowed to remain 0  mContentViewer=nsnull;  mDeviceContext=nsnull;  InitFrameData();#ifdef DEBUG  // We're counting the number of |nsWebShells| to help find leaks  --gNumberOfWebShells;#endif#ifdef DEBUG  printf("--WEBSHELL %p == %ld\n", this, gNumberOfWebShells);#endif}