Bug 474349. Set mOSHE when starting load for document.write, since there will never be an Embed call, and do so in all cases, not just when we already have an mOSHE. r+sr=jst

This commit is contained in:
Boris Zbarsky 2009-01-22 14:33:10 -05:00
parent beaa52a3b0
commit d9fb5d832d

View File

@ -5103,8 +5103,9 @@ nsDocShell::OnStateChange(nsIWebProgress * aProgress, nsIRequest * aRequest,
SetCurrentURI(uri, aRequest, PR_TRUE);
// Save history state of the previous page
rv = PersistLayoutHistoryState();
if (mOSHE)
SetHistoryEntry(&mOSHE, mLSHE);
// We'll never get an Embed() for this load, so just go ahead
// and SetHistoryEntry now.
SetHistoryEntry(&mOSHE, mLSHE);
}
}