Bug 215405. Restore scroll position, but not form state, on no-store and SSL no-cache sites. r+sr=bzbarsky

This commit is contained in:
Graeme McCutcheon
2008-12-03 12:55:14 -05:00
parent 6bb1e765e5
commit 68d99f9eba
17 changed files with 322 additions and 26 deletions

View File

@@ -8490,11 +8490,6 @@ NS_IMETHODIMP nsDocShell::PersistLayoutHistoryState()
nsresult rv = NS_OK;
if (mOSHE) {
PRBool shouldSave;
GetShouldSaveLayoutState(&shouldSave);
if (!shouldSave)
return NS_OK;
nsCOMPtr<nsIPresShell> shell;
rv = GetPresShell(getter_AddRefs(shell));
if (NS_SUCCEEDED(rv) && shell) {