Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2949073002: Changing scroll and view state in onpopstate shouldn't overwrite back/forward state restore (Closed)
Patch Set: +test Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 40adbba9f6b9c0379e59bf9915d0f1a04354c48e..ff4fd900ab65caa6ec58ead6d55f837fab0f0d44 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3299,7 +3299,7 @@ void WebViewImpl::ResetScrollAndScaleState() {
ToLocalFrame(GetPage()->MainFrame())->GetDocument()) {
if (DocumentLoader* loader = document->Loader()) {
if (HistoryItem* item = loader->GetHistoryItem())
- item->SetDidSaveScrollOrScaleState(false);
+ item->ClearScrollAndViewState();
}
}

Powered by Google App Engine
This is Rietveld 408576698