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

Unified Diff: third_party/WebKit/WebCore/loader/FrameLoader.cpp

Issue 151068: Port WebKit r43831 to 172.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 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 | « third_party/WebKit/WebCore/loader/DocLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/loader/FrameLoader.cpp
===================================================================
--- third_party/WebKit/WebCore/loader/FrameLoader.cpp (revision 18687)
+++ third_party/WebKit/WebCore/loader/FrameLoader.cpp (working copy)
@@ -3202,10 +3202,12 @@
{
if (m_isComplete)
return CachePolicyVerify;
-
+
+ // FIXME: This will return CachePolicyReload for any subresource of a document resulting from a POST request,
+ // making WebCore cache malfunction for such documents (see DocLoader::checkForReload()).
if (m_loadType == FrameLoadTypeReloadFromOrigin || documentLoader()->request().cachePolicy() == ReloadIgnoringCacheData)
return CachePolicyReload;
-
+
if (Frame* parentFrame = m_frame->tree()->parent()) {
CachePolicy parentCachePolicy = parentFrame->loader()->cachePolicy();
if (parentCachePolicy != CachePolicyVerify)
« no previous file with comments | « third_party/WebKit/WebCore/loader/DocLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698