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

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

Issue 2852433004: Add an experimental flag to change location.reload to take a hard-reload (Closed)
Patch Set: Merge branch 'master' into 2852433004 Created 3 years, 7 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 | « content/public/common/content_features.cc ('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 a52e2cc7ea15226ea8a85463da32562f207436bc..b2b862306ddbc2d4f1485424b0e85bbffbbea54e 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -401,7 +401,10 @@ void LocalFrame::Reload(FrameLoadType load_type,
request.SetClientRedirect(client_redirect_policy);
loader_.Load(request, load_type);
} else {
- DCHECK_EQ(kFrameLoadTypeReload, load_type);
+ DCHECK_EQ(RuntimeEnabledFeatures::locationHardReloadEnabled()
+ ? kFrameLoadTypeReloadBypassingCache
+ : kFrameLoadTypeReload,
+ load_type);
navigation_scheduler_->ScheduleReload();
}
}
« no previous file with comments | « content/public/common/content_features.cc ('k') | third_party/WebKit/Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698