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:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user