зеркало из https://github.com/mozilla/pjs.git
Fix for bug # 55055 r=adamlock sr=rpotts
This commit is contained in:
Родитель
0081f6ef04
Коммит
8edf6c8504
|
@ -507,7 +507,14 @@ nsSHistory::LoadEntry(PRInt32 aIndex, PRBool aReloadFlag, long aLoadType)
|
|||
loadInfo->SetLoadType(aLoadType);
|
||||
loadInfo->SetSHEntry(nextEntry);
|
||||
// Time to initiate a document load
|
||||
return docShell->LoadURI(nexturi, loadInfo, nsIWebNavigation::LOAD_FLAGS_NONE);
|
||||
nsresult rv = docShell->LoadURI(nexturi, loadInfo, nsIWebNavigation::LOAD_FLAGS_NONE);
|
||||
/* If the loadURI call failed for some reason,
|
||||
* reset mIndex to what it was. so that back/forward
|
||||
* won't misbehave
|
||||
*/
|
||||
if (!NS_SUCCEEDED(rv))
|
||||
mIndex = oldIndex;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче