Bug 451898. When stopping an error page load, make sure to null out mLSHE. r=biesi

This commit is contained in:
Boris Zbarsky
2009-07-29 13:39:28 -04:00
parent 791478a055
commit f4e0c25d2e

View File

@@ -3952,6 +3952,12 @@ nsDocShell::Stop(PRUint32 aStopFlags)
// Revoke any pending event related to content viewer restoration
mRestorePresentationEvent.Revoke();
if (mLoadType == LOAD_ERROR_PAGE && mLSHE) {
// Since error page loads never unset mLSHE, do so now
SetHistoryEntry(&mOSHE, mLSHE);
SetHistoryEntry(&mLSHE, nsnull);
}
if (nsIWebNavigation::STOP_CONTENT & aStopFlags) {
// Stop the document loading
if (mContentViewer)