mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
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:
parent
2e603a54f6
commit
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?
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user