Fix assorted issues with fastback, including adding progress listener notifications and introducing the PageHide and PageShow events. See bug 292971 for all of the details. r=darin, sr=bzbarsky, a=shaver.
git-svn-id: svn://10.0.0.236/trunk@174651 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -142,6 +142,7 @@ nsDocLoader::nsDocLoader()
|
||||
mParent = nsnull;
|
||||
|
||||
mIsLoadingDocument = PR_FALSE;
|
||||
mIsRestoringDocument = PR_FALSE;
|
||||
|
||||
static PLDHashTableOps hash_table_ops =
|
||||
{
|
||||
@@ -1155,6 +1156,10 @@ void nsDocLoader::FireOnStateChange(nsIWebProgress *aProgress,
|
||||
aStateFlags &= ~nsIWebProgressListener::STATE_IS_NETWORK;
|
||||
}
|
||||
|
||||
// Add the STATE_RESTORING bit if necessary.
|
||||
if (mIsRestoringDocument)
|
||||
aStateFlags |= nsIWebProgressListener::STATE_RESTORING;
|
||||
|
||||
#if defined(DEBUG)
|
||||
nsCAutoString buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user