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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2555963003: FasterLocationReload: use ReloadMainResource for JS exposed reloads (Closed)
Patch Set: test Created 4 years 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/Source/core/frame/History.cpp ('k') | third_party/WebKit/Source/core/frame/Location.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index c5b2158145c0e2df2d15d8fad69158b28491d77d..67220a38a40ef07f25b25f0f65501b806b7d11b6 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -377,7 +377,10 @@ void LocalFrame::reload(FrameLoadType loadType,
request.setClientRedirect(clientRedirectPolicy);
m_loader.load(request, loadType);
} else {
- DCHECK_EQ(FrameLoadTypeReload, loadType);
+ if (RuntimeEnabledFeatures::fasterLocationReloadEnabled())
+ DCHECK_EQ(FrameLoadTypeReloadMainResource, loadType);
+ else
+ DCHECK_EQ(FrameLoadTypeReload, loadType);
m_navigationScheduler->scheduleReload();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.cpp ('k') | third_party/WebKit/Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698