Changed OnEndDocumentLoad(...) to use the document loader as the descriminator to decide if it should handle the notification...

git-svn-id: svn://10.0.0.236/branches/SeaMonkey_M9_BRANCH@43578 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1999-08-19 09:21:07 +00:00
parent 786f2e644c
commit 4faf5b3ee7
2 changed files with 4 additions and 4 deletions

View File

@@ -2782,7 +2782,6 @@ nsWebShell::ReloadDocument(const char* aCharset,
mHintCharsetSource= aSource;
return Reload( nsIChannel::LOAD_NORMAL);
}
NS_IMETHODIMP
@@ -3232,7 +3231,8 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if (NS_FAILED(rv)) return rv;
#endif
if (!mProcessedEndDocumentLoad) {
//if (!mProcessedEndDocumentLoad) {
if (loader == mDocLoader) {
mProcessedEndDocumentLoad = PR_TRUE;
if (nsnull != mScriptGlobal) {

View File

@@ -2782,7 +2782,6 @@ nsWebShell::ReloadDocument(const char* aCharset,
mHintCharsetSource= aSource;
return Reload( nsIChannel::LOAD_NORMAL);
}
NS_IMETHODIMP
@@ -3232,7 +3231,8 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if (NS_FAILED(rv)) return rv;
#endif
if (!mProcessedEndDocumentLoad) {
//if (!mProcessedEndDocumentLoad) {
if (loader == mDocLoader) {
mProcessedEndDocumentLoad = PR_TRUE;
if (nsnull != mScriptGlobal) {