Bug #21358 --> Make sure we only call the on load handler ONCE per document. This prevents a nasty loop if

the onload handler tries to load an ftp url.
r=travis
a=jar


git-svn-id: svn://10.0.0.236/trunk@62295 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
2000-03-07 06:02:04 +00:00
parent 7592ea7119
commit 6fd2ac0301
4 changed files with 14 additions and 4 deletions

View File

@@ -73,7 +73,8 @@ nsDocShell::nsDocShell() :
mTreeOwner(nsnull),
mChromeEventHandler(nsnull),
mCurrentScrollbarPref(-1,-1),
mDefaultScrollbarPref(-1,-1)
mDefaultScrollbarPref(-1,-1),
mEODForCurrentDocument (PR_FALSE)
{
NS_INIT_REFCNT();
}
@@ -1893,7 +1894,7 @@ NS_IMETHODIMP nsDocShell::CreateContentViewer(const char* aContentType,
}
NS_ENSURE_SUCCESS(SetupNewViewer(viewer), NS_ERROR_FAILURE);
mEODForCurrentDocument = PR_FALSE; // clear the current flag
return NS_OK;
}