зеркало из https://github.com/mozilla/gecko-dev.git
moved to the higher level LoadURL() call to get more observer handling
This commit is contained in:
Родитель
fe55e7428d
Коммит
567fee5488
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче