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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user