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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2628683003: Add DidSaveScrollOrScaleState flag to prevent restoreScrollPositionAndViewState restore from default (Closed)
Patch Set: fix test Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/ParentNode-querySelector-All-xht-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index e664eb27cae54417d51390f29bb50218095ea927..9123ec1be5b4137b150d2c93840607168db1c80c 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -634,6 +634,9 @@ void FrameLoader::finishedParsing() {
m_documentLoader ? m_documentLoader->isCommittedButEmpty() : true);
}
+ // RestoreScrollPositionAndViewState maybe called in checkCompleted. We need
+ // to ensure processFragment called before restoreScrollPositionAndViewState.
+ processFragment(m_frame->document()->url(), NavigationToDifferentDocument);
checkCompleted();
if (!m_frame->view())
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/ParentNode-querySelector-All-xht-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698