moved to the higher level LoadURL() call to get more observer handling

This commit is contained in:
valeski%netscape.com 1999-08-05 04:49:38 +00:00
Родитель fe55e7428d
Коммит 567fee5488
2 изменённых файлов: 8 добавлений и 12 удалений

Просмотреть файл

@ -3051,7 +3051,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
#endif #endif
if (!mProcessedEndDocumentLoad) { if (!mProcessedEndDocumentLoad) {
mProcessedEndDocumentLoad = PR_TRUE; mProcessedEndDocumentLoad = PR_TRUE;
@ -3167,11 +3166,10 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
nsString2 newURL(aSpec); nsString2 newURL(aSpec);
// reload the url // reload the url
//const PRUnichar *spec = newURL.GetUnicode(); const PRUnichar *spec = newURL.GetUnicode();
//if (spec) { if (spec) {
//rv = LoadURL(spec, "load"); rv = LoadURL(spec, "view");
rv = DoLoadURL(newURL,"view", nsnull, nsIChannel::LOAD_NORMAL, 0); }
//}
} // retry } // retry
} // unknown host } // unknown host
#endif //NECKO #endif //NECKO

Просмотреть файл

@ -3051,7 +3051,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
#endif #endif
if (!mProcessedEndDocumentLoad) { if (!mProcessedEndDocumentLoad) {
mProcessedEndDocumentLoad = PR_TRUE; mProcessedEndDocumentLoad = PR_TRUE;
@ -3167,11 +3166,10 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
nsString2 newURL(aSpec); nsString2 newURL(aSpec);
// reload the url // reload the url
//const PRUnichar *spec = newURL.GetUnicode(); const PRUnichar *spec = newURL.GetUnicode();
//if (spec) { if (spec) {
//rv = LoadURL(spec, "load"); rv = LoadURL(spec, "view");
rv = DoLoadURL(newURL,"view", nsnull, nsIChannel::LOAD_NORMAL, 0); }
//}
} // retry } // retry
} // unknown host } // unknown host
#endif //NECKO #endif //NECKO