| 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 1d8a489187bf24ba71847999558509e59898b068..10f6537b910c422c16313e92e5069c65db638e7f 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -394,11 +394,11 @@ void FrameFetchContext::dispatchDidLoadResourceFromMemoryCache(unsigned long ide
|
| dispatchDidFinishLoading(identifier, 0, 0);
|
| }
|
|
|
| -bool FrameFetchContext::shouldLoadNewResource(Resource::Type type) const
|
| +bool FrameFetchContext::shouldLoadNewResource(Resource::Type type, const WebURLRequest::FrameType frameType) const
|
| {
|
| if (!m_documentLoader)
|
| return true;
|
| - if (type == Resource::MainResource)
|
| + if (type == Resource::MainResource && frameType != WebURLRequest::FrameTypePreload)
|
| return m_documentLoader == frame()->loader().provisionalDocumentLoader();
|
| return m_documentLoader == frame()->loader().documentLoader();
|
| }
|
|
|