From b602cd3642aaa795e3f812b58c6ecc5079b01b61 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Thu, 1 Sep 2005 12:12:04 +0000 Subject: [PATCH] bug 300800 make CreateAboutBlankContentViewer store the current viewer in shistory r=bryner sr=bz git-svn-id: svn://10.0.0.236/trunk@179462 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index fa27a881196..59efb574398 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -4766,13 +4766,15 @@ nsDocShell::CreateAboutBlankContentViewer() return NS_ERROR_FAILURE; } + mSavingOldViewer = CanSavePresentation(LOAD_NORMAL, nsnull, nsnull); + // Notify the current document that it is about to be unloaded!! // // It is important to fire the unload() notification *before* any state // is changed within the DocShell - otherwise, javascript will get the // wrong information :-( // - (void) FirePageHideNotification(PR_TRUE); + (void) FirePageHideNotification(!mSavingOldViewer); } // one helper factory, please