mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +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 (!canNavigate) {
|
||||||
// If the listener asked us not to proceed with
|
// If the listener asked us not to proceed with
|
||||||
// the operation, simply return.
|
// the operation, simply return.
|
||||||
|
mRequestedIndex = -1;
|
||||||
return NS_OK; // XXX Maybe I can return some other error code?
|
return NS_OK; // XXX Maybe I can return some other error code?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user