| Index: third_party/WebKit/Source/core/fetch/Resource.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
|
| index 797393003558096ec18e1e5dbc864c64dfc0c425..aab395943d7735587c6d4757f54c6af735c81441 100644
|
| --- a/third_party/WebKit/Source/core/fetch/Resource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
|
| @@ -545,6 +545,7 @@ const ResourceRequest& Resource::lastResourceRequest() const
|
|
|
| void Resource::setRevalidatingRequest(const ResourceRequest& request)
|
| {
|
| + SECURITY_CHECK(m_redirectChain.isEmpty());
|
| m_revalidatingRequest = request;
|
| m_status = NotStarted;
|
| }
|
| @@ -896,6 +897,8 @@ String Resource::getMemoryDumpName() const
|
|
|
| void Resource::revalidationSucceeded(const ResourceResponse& validatingResponse)
|
| {
|
| + SECURITY_CHECK(m_redirectChain.isEmpty());
|
| + SECURITY_CHECK(validatingResponse.url() == m_response.url());
|
| m_response.setResourceLoadTiming(validatingResponse.resourceLoadTiming());
|
|
|
| // RFC2616 10.3.5
|
| @@ -920,7 +923,7 @@ void Resource::revalidationFailed()
|
| {
|
| m_resourceRequest = m_revalidatingRequest;
|
| m_revalidatingRequest = ResourceRequest();
|
| - m_redirectChain.clear();
|
| + SECURITY_CHECK(m_redirectChain.isEmpty());
|
| m_data.clear();
|
| m_cacheHandler.clear();
|
| destroyDecodedDataForFailedRevalidation();
|
|
|