Reworked the nsIWebProgress interfaces and implementation...

git-svn-id: svn://10.0.0.236/trunk@72533 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
2000-06-19 05:54:37 +00:00
parent a5e58dbb84
commit 406f61beb3
30 changed files with 1207 additions and 1066 deletions

View File

@@ -402,6 +402,7 @@ nsWebShell::~nsWebShell()
mDocLoader->Stop();
mDocLoader->RemoveObserver((nsIDocumentLoaderObserver*)this);
mDocLoader->SetContainer(nsnull);
mDocLoader->Destroy();
NS_RELEASE(mDocLoader);
}
// Cancel any timers that were set for this loader.
@@ -1138,7 +1139,7 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
during this load handler. */
nsCOMPtr<nsIWebShell> kungFuDeathGrip(this);
if(mScriptGlobal && !mEODForCurrentDocument)
if(mScriptGlobal && !mEODForCurrentDocument && NS_SUCCEEDED(aStatus))
{
if(mContentViewer)
{