Fix for bug 114975 (location.hash fails within multipart/x-mixed-replace). Don't call nsIWebNavigation->Stop from SetHash. r=sicking, sr=jst.

This commit is contained in:
peterv%netscape.com 2002-01-07 10:13:08 +00:00
Родитель b15d0e07fd
Коммит 6b373f1edc
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -304,7 +304,16 @@ LocationImpl::SetHash(const nsAReadableString& aHash)
if (url) {
url->SetRef(NS_ConvertUCS2toUTF8(aHash).get());
SetURL(url);
if (mDocShell) {
nsCOMPtr<nsIDocShellLoadInfo> loadInfo;
if (NS_SUCCEEDED(CheckURL(url, getter_AddRefs(loadInfo))))
// We're not calling nsIWebNavigation->Stop, we don't
// want to stop the load when we're just scrolling to a
// named anchor in the document. See bug 114975.
mDocShell->LoadURI(url, loadInfo,
nsIWebNavigation::LOAD_FLAGS_NONE);
}
}
}