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

Unified Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.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/loader/NavigationScheduler.cpp
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
index 0abc6a5e2d23273348c0a6b4f4e83a4d5b6ec8ad..a7740dee751fef5abacb5fb385336f76fb858521 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
@@ -271,7 +271,10 @@ class ScheduledReload final : public ScheduledNavigation {
request.setClientRedirect(ClientRedirectPolicy::ClientRedirect);
maybeLogScheduledNavigationClobber(ScheduledNavigationType::ScheduledReload,
frame);
- frame->loader().load(request, FrameLoadTypeReload);
+ if (RuntimeEnabledFeatures::fasterLocationReloadEnabled())
+ frame->loader().load(request, FrameLoadTypeReloadMainResource);
+ else
+ frame->loader().load(request, FrameLoadTypeReload);
}
private:
« no previous file with comments | « third_party/WebKit/Source/core/frame/Location.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698