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

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

Issue 2865013002: Add an experimental flag to change location.reload to take a hard-reload (Closed)
Patch Set: 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 b64d75d627f1238ca45956bd77918f23f4ac64a6..f53bffff54ce095ed0923bff4ddbc1fa8ed91758 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -398,7 +398,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