Fix for bug # 124245. javascript onload redirect breaks back button. r= rpotts sr=alecf, a=roc+moz

git-svn-id: svn://10.0.0.236/trunk@125122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
radha%netscape.com
2002-07-12 21:15:51 +00:00
parent 7934fc0bf6
commit 8f44bb451e

View File

@@ -613,6 +613,17 @@ nsDocShell::LoadURI(nsIURI * aURI,
}
} // parent
} //parentDS
else { // This is the root docshell
PRUint32 selfBusy = BUSY_FLAGS_NONE;
GetBusyFlags(&selfBusy);
// If we are still busy loading the previous page, then this load was
// probably initiated by a onLoadhandler. Let the new page replace
// previous one.
if (mLSHE && (selfBusy & BUSY_FLAGS_BUSY)) {
loadType = LOAD_NORMAL_REPLACE;
}
}
} // !shEntry
if (shEntry) {