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

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 17391004: Reland "Fix reload after back/forward navigation setting the wrong cache policy."" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: With fix Created 7 years, 6 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 | « Source/WebKit/chromium/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index c9942906518cccc10722129d6c1da5312246f8bc..0c1199a15f1cbb79bacd9838af3716e3f18fabae 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -1170,6 +1170,9 @@ void FrameLoader::reload(bool endToEndReload, const KURL& overrideURL, const Str
frame()->loader()->history()->saveDocumentAndScrollState();
ResourceRequest request = documentLoader->request();
+ // FIXME: We need to reset cache policy to prevent it from being incorrectly propagted to the reload.
+ // Do we need to propagate anything other than the url?
+ request.setCachePolicy(UseProtocolCachePolicy);
if (!overrideURL.isEmpty())
request.setURL(overrideURL);
else if (!documentLoader->unreachableURL().isEmpty())
« no previous file with comments | « Source/WebKit/chromium/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698