Make sure to save the layout state when navigating to a cached presentation, in case the content viewer for the previous page is not saved or is later evicted. Bug 321671, r=biesi.

This commit is contained in:
bryner@brianryner.com
2006-01-13 19:27:54 +00:00
parent c935c1e32f
commit 4c9202f105

View File

@@ -5390,7 +5390,7 @@ nsDocShell::RestoreFromHistory()
// Rather than call Embed(), we will retrieve the viewer from the session
// history entry and swap it in.
// XXX can we refactor this so that we can just call Embed()?
// XXX PersistLayoutHistoryState() ?
PersistLayoutHistoryState();
nsresult rv;
if (mContentViewer) {
if (mSavingOldViewer && NS_FAILED(CaptureState())) {