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