r=pollmann. Fix for nsbeta3++ bug 48382. Fixes the infinite loop when location.href was set from the onload handler of a frame.

This commit is contained in:
nisheeth%netscape.com 2000-09-28 05:44:10 +00:00
Родитель 6cde07b1b5
Коммит b46048fc9b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -321,7 +321,7 @@ nsDocShell::LoadURI(nsIURI* aURI, nsIDocShellLoadInfo* aLoadInfo, PRUint32 aLoad
aLoadInfo->GetTarget(getter_Copies(target));
}
if (!shEntry && loadType != LOAD_NORMAL_REPLACE) {
if (!shEntry && loadType != LOAD_NORMAL_REPLACE && mCurrentURI == nsnull) {
/* Check if we are in the middle of loading a subframe whose parent
* was originally loaded thro' Session History. ie., you were in a frameset
* page, went somewhere else and clicked 'back'. The loading of the root page