From 567fee54884ab682bbee55c921a218929f53bebd Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Thu, 5 Aug 1999 04:49:38 +0000 Subject: [PATCH] moved to the higher level LoadURL() call to get more observer handling --- docshell/base/nsWebShell.cpp | 10 ++++------ webshell/src/nsWebShell.cpp | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index 3b9f40f845cb..239d0807c2de 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -3051,7 +3051,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader, if (NS_FAILED(rv)) return rv; #endif - if (!mProcessedEndDocumentLoad) { mProcessedEndDocumentLoad = PR_TRUE; @@ -3167,11 +3166,10 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader, if (NS_FAILED(rv)) return rv; nsString2 newURL(aSpec); // reload the url - //const PRUnichar *spec = newURL.GetUnicode(); - //if (spec) { - //rv = LoadURL(spec, "load"); - rv = DoLoadURL(newURL,"view", nsnull, nsIChannel::LOAD_NORMAL, 0); - //} + const PRUnichar *spec = newURL.GetUnicode(); + if (spec) { + rv = LoadURL(spec, "view"); + } } // retry } // unknown host #endif //NECKO diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index 3b9f40f845cb..239d0807c2de 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -3051,7 +3051,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader, if (NS_FAILED(rv)) return rv; #endif - if (!mProcessedEndDocumentLoad) { mProcessedEndDocumentLoad = PR_TRUE; @@ -3167,11 +3166,10 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader, if (NS_FAILED(rv)) return rv; nsString2 newURL(aSpec); // reload the url - //const PRUnichar *spec = newURL.GetUnicode(); - //if (spec) { - //rv = LoadURL(spec, "load"); - rv = DoLoadURL(newURL,"view", nsnull, nsIChannel::LOAD_NORMAL, 0); - //} + const PRUnichar *spec = newURL.GetUnicode(); + if (spec) { + rv = LoadURL(spec, "view"); + } } // retry } // unknown host #endif //NECKO