bug 300800 make CreateAboutBlankContentViewer store the current viewer in

shistory
r=bryner sr=bz a=mtschrep


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179715 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2005-09-06 19:40:59 +00:00
parent 4ebb8b2e9d
commit 2f7bf89267

View File

@@ -4767,13 +4767,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