Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
index ff2440b743be8cb317de7c30c52d08a254af3a09..6630e9b8d804d65e8cf48e8f5442a477a32632c0 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
@@ -309,10 +309,13 @@ bool FrameFetchContext::shouldLoadNewResource(Resource::Type type) const |
return m_documentLoader == frame()->loader().documentLoader(); |
} |
-void FrameFetchContext::willStartLoadingResource(ResourceRequest& request) |
+void FrameFetchContext::willStartLoadingResource(ResourceRequest& request, FetchResourceType type) |
{ |
- if (m_documentLoader) |
- m_documentLoader->applicationCacheHost()->willStartLoadingResource(request); |
+ if (!m_documentLoader) |
+ return; |
+ if (type == FetchMainResource) |
+ m_documentLoader->applicationCacheHost()->willStartLoadingMainResource(request); |
+ m_documentLoader->applicationCacheHost()->willStartLoadingResource(request); |
} |
void FrameFetchContext::didLoadResource() |