зеркало из https://github.com/mozilla/gecko-dev.git
Bug 665964: If the nsISHistoryListener vetoes navigation, reset mRequestedIndex to make it clear that the navigation has been cancelled. r=bz
This commit is contained in:
Родитель
2e603a54f6
Коммит
460091a3b1
|
@ -1496,6 +1496,7 @@ nsSHistory::LoadEntry(PRInt32 aIndex, long aLoadType, PRUint32 aHistCmd)
|
|||
if (!canNavigate) {
|
||||
// If the listener asked us not to proceed with
|
||||
// the operation, simply return.
|
||||
mRequestedIndex = -1;
|
||||
return NS_OK; // XXX Maybe I can return some other error code?
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче