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

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

Issue 2705373006: PlzNavigate: Fix the fast/loader/crash-replacing-location-before-load.html layout test. (Closed)
Patch Set: Created 3 years, 10 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/FlagExpectations/enable-browser-side-navigation ('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 1b97f12d7356eb16609dd82bf054464bb0442093..23cfc3127925bb5cc53ff1ba70685395d28f2158 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -864,6 +864,10 @@ void FrameLoader::loadInSameDocument(
// If we have a provisional request for a different document, a fragment
// scroll should cancel it.
detachDocumentLoader(m_provisionalDocumentLoader);
+
+ // PlzNavigate: A fragment scroll should clear ongoing client navigations.
+ clearNavigationHandledByClient();
+
if (!m_frame->host())
return;
saveScrollState();
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698