Reworked the nsIWebProgress interfaces and implementation...

This commit is contained in:
rpotts@netscape.com
2000-06-19 05:54:37 +00:00
parent 01be499de8
commit 4435cc3c6a
28 changed files with 1171 additions and 1030 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)
{