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

Unified Diff: third_party/WebKit/Source/core/frame/Location.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
Index: third_party/WebKit/Source/core/frame/Location.cpp
diff --git a/third_party/WebKit/Source/core/frame/Location.cpp b/third_party/WebKit/Source/core/frame/Location.cpp
index dd3626cd98591d2e1165d3b24faaf97c06725c39..37a04e2bf1476c82944909a7f96cffbcbb3a6f41 100644
--- a/third_party/WebKit/Source/core/frame/Location.cpp
+++ b/third_party/WebKit/Source/core/frame/Location.cpp
@@ -248,7 +248,11 @@ void Location::reload(LocalDOMWindow* currentWindow) {
return;
if (protocolIsJavaScript(toLocalFrame(m_frame)->document()->url()))
return;
- m_frame->reload(FrameLoadTypeReload, ClientRedirectPolicy::ClientRedirect);
+ FrameLoadType reloadType =
+ RuntimeEnabledFeatures::fasterLocationReloadEnabled()
+ ? FrameLoadTypeReloadMainResource
+ : FrameLoadTypeReload;
+ m_frame->reload(reloadType, ClientRedirectPolicy::ClientRedirect);
}
void Location::setLocation(const String& url,
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698